
/* Background Animation Canvas */
#backgroundCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}


/* Blink Animation for Buttons */
@keyframes blinkAnimation {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 20px rgba(41, 150, 161, 0.8);
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        box-shadow: 0 0 40px rgba(41, 150, 161, 1);
        transform: scale(1.05);
    }
}

.blink-animation {
    animation: blinkAnimation 1.5s ease-in-out infinite;
}

/* Container Scoping */
.pdf2img-container {
    min-height: 100vh;
    padding-bottom: 2rem;
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Tool Header */
.tool-header {
    text-align: center;
    margin-bottom: 3rem;
    color: #fff;
}

.tool-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.tool-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Status Display */
.status-display {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.status-display.success {
    background: rgba(76, 175, 80, 0.95);
    color: white;
}

.status-display.error {
    background: rgba(244, 67, 54, 0.95);
    color: white;
}

.status-display.info {
    background: rgba(33, 150, 243, 0.95);
    color: white;
}

.status-display.hidden {
    display: none;
}

/* Upload Section */
.upload-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 3rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.upload-zone {
    border: 3px dashed #29968d;
    border-radius: 12px;
    padding: 4rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-zone:hover, .upload-zone.drag-over {
    border-color: #1d6b64;
    background: rgba(41, 150, 161, 0.1);
    transform: scale(1.02);
}

.upload-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    color: #29968d;
}

.upload-zone h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.upload-zone p {
    color: #666;
    margin: 1rem 0;
}

.browse-btn {
    background: linear-gradient(135deg, #29968d 0%, #1d6b64 100%);
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.browse-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.upload-hint {
    font-size: 0.9rem;
    color: #999;
    margin-top: 1.5rem;
}

/* PDF Info */
.pdf-info {
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.info-label {
    font-weight: 600;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.info-value {
    color: #29968d;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Settings Section */
.settings-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.settings-section h2 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.setting-item label {
    display: block;
    font-weight: 600;
    color: #555;
    margin-bottom: 0.75rem;
}

.format-options {
    display: flex;
    gap: 1.5rem;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
}

.radio-label input[type="radio"] {
    margin-right: 0.5rem;
    cursor: pointer;
}

.quality-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #ddd;
    outline: none;
    -webkit-appearance: none;
}

.quality-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #29968d;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quality-slider::-webkit-slider-thumb:hover {
    background: #1d6b64;
    transform: scale(1.2);
}

.quality-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #29968d;
    cursor: pointer;
    border: none;
}

/* Actions Section */
.actions-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.download-all-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.action-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.action-btn svg {
    width: 20px;
    height: 20px;
}

.primary-btn {
    background: linear-gradient(135deg, #29968d 0%, #1d6b64 100%);
    color: white;
    flex: 1;
}

.success-btn {
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
    color: white;
    flex: 1;
}

.secondary-btn {
    background: linear-gradient(135deg, #666 0%, #444 100%);
    color: white;
}

.action-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.action-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Progress Section */
.progress-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    height: 30px;
    background: #e0e0e0;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #29968d 0%, #4caf50 100%);
    border-radius: 15px;
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.progress-text {
    text-align: center;
    color: #555;
    font-weight: 500;
}

/* Pages Section */
.pages-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pages-section h2 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.pages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
}

.page-item {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.page-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page-thumbnail {
    width: 100%;
    aspect-ratio: 0.707;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 0.75rem;
    background: #f5f5f5;
}

.page-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.page-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.page-number {
    text-align: center;
    font-weight: 600;
    color: #555;
    font-size: 0.9rem;
}

/* Individual Page Download Button */
.page-download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    background: linear-gradient(135deg, #29968d 0%, #1d6b64 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.page-download-btn svg {
    width: 16px;
    height: 16px;
}

.page-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #1d6b64 0%, #29968d 100%);
}

.page-download-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Download Section */
.download-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.download-section h2 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

/* Error Message */
.error-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.error-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.error-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #f44336;
}

.error-header svg {
    width: 32px;
    height: 32px;
}

.error-content p {
    color: #555;
    margin-bottom: 1.5rem;
}

.error-close {
    background: #f44336;
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
}

.error-close:hover {
    background: #d32f2f;
}

/* Tutorial Section */
.tutorial-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 3rem;
    border-radius: 12px;
    margin: 2rem auto;
    max-width: 1200px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.tutorial-section h2 {
    color: #333;
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.tutorial-content h3 {
    color: #29968d;
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.tutorial-content p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

/* Footer */
.footer {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    text-align: center;
    margin-top: 3rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-content p {
    color: #666;
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

/* Hidden Class */
.hidden {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tool-header h1 {
        font-size: 2rem;
    }

    .settings-grid {
        grid-template-columns: 1fr;
    }

    .download-all-buttons {
        flex-direction: column;
    }

    .pages-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 1rem;
    }

    .tutorial-section {
        padding: 2rem 1rem;
    }

    .page-download-btn {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }
}

/* Aurora Background Canvas */
#auroraCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #0f1729 100%);
}

/* Blink Animation for Buttons */
@keyframes blinkAnimation {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 20px rgba(41, 150, 161, 0.8);
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        box-shadow: 0 0 40px rgba(41, 150, 161, 1);
        transform: scale(1.05);
    }
}

.blink-animation {
    animation: blinkAnimation 1.5s ease-in-out infinite;
}

/* Container Scoping */
.pdf2img-container {
    min-height: 100vh;
    padding-bottom: 2rem;
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Tool Header */
.tool-header {
    text-align: center;
    margin-bottom: 3rem;
    color: #fff;
}

.tool-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.tool-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Status Display */
.status-display {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.status-display.success {
    background: rgba(76, 175, 80, 0.95);
    color: white;
}

.status-display.error {
    background: rgba(244, 67, 54, 0.95);
    color: white;
}

.status-display.info {
    background: rgba(33, 150, 243, 0.95);
    color: white;
}

.status-display.hidden {
    display: none;
}

/* Upload Section */
.upload-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 3rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.upload-zone {
    border: 3px dashed #29968d;
    border-radius: 12px;
    padding: 4rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-zone:hover, .upload-zone.drag-over {
    border-color: #1d6b64;
    background: rgba(41, 150, 161, 0.1);
    transform: scale(1.02);
}

.upload-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: #29968d;
}

.upload-zone h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.upload-zone p {
    color: #666;
    margin: 1rem 0;
}

.browse-btn {
    background: linear-gradient(135deg, #29968d 0%, #1d6b64 100%);
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.browse-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* PDF Info */
.pdf-info {
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.info-label {
    font-weight: 600;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.info-value {
    color: #29968d;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Settings Section */
.settings-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.settings-section h2 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.setting-item label {
    display: block;
    font-weight: 600;
    color: #555;
    margin-bottom: 0.75rem;
}

.format-options {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
}

.radio-label input[type="radio"] {
    margin-right: 0.5rem;
    cursor: pointer;
}

.quality-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #ddd;
    outline: none;
    -webkit-appearance: none;
}

.quality-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #29968d;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quality-slider::-webkit-slider-thumb:hover {
    background: #1d6b64;
    transform: scale(1.2);
}

.quality-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #29968d;
    cursor: pointer;
    border: none;
}

.quality-note {
    font-size: 0.85rem;
    color: #999;
    margin-top: 0.5rem;
    font-weight: normal;
}

/* Actions Section */
.actions-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.download-all-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.action-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.action-btn svg {
    width: 20px;
    height: 20px;
}

.primary-btn {
    background: linear-gradient(135deg, #29968d 0%, #1d6b64 100%);
    color: white;
    flex: 1;
}

.success-btn {
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
    color: white;
    flex: 1;
}

.secondary-btn {
    background: linear-gradient(135deg, #666 0%, #444 100%);
    color: white;
}

.action-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.action-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Progress Section */
.progress-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    height: 30px;
    background: #e0e0e0;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #29968d 0%, #4caf50 100%);
    border-radius: 15px;
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.progress-text {
    text-align: center;
    color: #555;
    font-weight: 500;
}

/* Pages Section */
.pages-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pages-section h2 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.pages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
}

.page-item {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.page-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page-thumbnail {
    width: 100%;
    aspect-ratio: 0.707;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 0.75rem;
    background: #f5f5f5;
}

.page-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.page-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.page-number {
    text-align: center;
    font-weight: 600;
    color: #555;
    font-size: 0.9rem;
}

/* Individual Page Download Button */
.page-download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    background: linear-gradient(135deg, #29968d 0%, #1d6b64 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.page-download-btn svg {
    width: 16px;
    height: 16px;
}

.page-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #1d6b64 0%, #29968d 100%);
}

.page-download-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Error Message */
.error-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.error-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.error-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #f44336;
}

.error-header svg {
    width: 32px;
    height: 32px;
}

.error-content p {
    color: #555;
    margin-bottom: 1.5rem;
}

.error-close {
    background: #f44336;
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
}

.error-close:hover {
    background: #d32f2f;
}

/* Tutorial Section */
.tutorial-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 3rem;
    border-radius: 12px;
    margin: 2rem auto;
    max-width: 1200px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.tutorial-section h2 {
    color: #333;
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.tutorial-content h3 {
    color: #29968d;
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.tutorial-content p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

/* Hidden Class */
.hidden {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tool-header h1 {
        font-size: 2rem;
    }

    .settings-grid {
        grid-template-columns: 1fr;
    }

    .download-all-buttons {
        flex-direction: column;
    }

    .pages-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 1rem;
    }

    .tutorial-section {
        padding: 2rem 1rem;
    }

    .page-download-btn {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }

    .format-options {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* ZIP Download Button Style */
.zip-btn {
    background: linear-gradient(135deg, #9c27b0 0%, #673ab7 100%);
    color: white;
    flex: 1;
}

.zip-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #7b1fa2 0%, #512da8 100%);
}