body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.card {
    border-radius: 10px;
    overflow: hidden;
}

#pdfPreview {
    min-height: 400px;
    background-color: #e9ecef;
    padding: 15px;
    border-radius: 5px;
}

.pdf-page {
    cursor: pointer;
    margin: 10px;
    display: inline-block;
    position: relative;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
    background-color: white;
}

.pdf-page:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border-color: #1d4ed8;
}

.page-number {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background-color: #1d4ed8;
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
}

.list-group-item {
    cursor: move;
    border-left: 3px solid #1d4ed8;
    margin-bottom: 5px;
    border-radius: 5px !important;
}

.list-group-item:hover {
    background-color: #f0f7ff;
}

#fileList {
    max-height: 300px;
    overflow-y: auto;
}

.btn-primary {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
}

.btn-primary:hover {
    background-color: #1a43bf;
    border-color: #1a43bf;
}

#pdfZoomContainer {
    background-color: #6c757d;
    padding: 20px;
}

#zoomedPdfCanvas {
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    max-width: 100%;
    margin: 0 auto;
}

/* Hide sections when not active */
#previewSection:not(.d-none) ~ #uploadSection,
#downloadSection:not(.d-none) ~ #uploadSection,
#downloadSection:not(.d-none) ~ #previewSection {
    display: none !important;
}
/* Add these new styles to your existing CSS */
.pdf-page-container {
    display: inline-block;
    width: 1.5in;
    height: 2.5in;
    margin: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    background-color: white;
}

.pdf-page-container canvas {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.page-number {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background-color: #1d4ed8;
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 10px;
}

#downloadLink:not([href="#"]) {
    display: inline-block;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}
/* Smart Ad Styles */
.ad-header {
    height: 90px;
    margin: 0 auto 15px;
    max-width: 728px;
    background: rgba(233, 236, 239, 0.5);
    border-radius: 4px;
    overflow: hidden;
}

.ad-contextual {
    height: 250px;
    margin: 15px auto;
    background: rgba(248, 249, 250, 0.7);
    border-radius: 4px;
    overflow: hidden;
}

.ad-compact {
    height: 50px;
    width: 320px;
    background: rgba(248, 249, 250, 0.7);
    border-radius: 4px;
    overflow: hidden;
}

.ad-responsive {
    height: 90px;
    margin: 15px 0;
    background: rgba(248, 249, 250, 0.7);
    border-radius: 4px;
    overflow: hidden;
}

.ad-incontent {
    height: 250px;
    margin: 15px auto;
    background: rgba(248, 249, 250, 0.7);
    border-radius: 4px;
    overflow: hidden;
}

.ad-sidebar {
    height: 250px;
    margin: 15px 0;
    background: rgba(248, 249, 250, 0.7);
    border-radius: 4px;
    overflow: hidden;
}

.ad-footer {
    height: 90px;
    margin: 15px auto 0;
    max-width: 728px;
    background: rgba(248, 249, 250, 0.7);
    border-radius: 4px;
    overflow: hidden;
}

.ad-conversion {
    height: 90px;
    margin: 15px auto;
    max-width: 728px;
    background: rgba(248, 249, 250, 0.7);
    border-radius: 4px;
    overflow: hidden;
}

.ad-modal-header {
    position: absolute;
    top: 0;
    right: 0;
    width: 320px;
    height: 50px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0 0 0 4px;
    overflow: hidden;
}

.ad-mobile-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: #f8f9fa;
    z-index: 1050;
    border-top: 1px solid #dee2e6;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .ad-header {
        height: 50px;
    }
    
    .ad-contextual, 
    .ad-incontent,
    .ad-sidebar {
        height: 150px;
    }
    
    .ad-compact {
        display: none;
    }
    
    .ad-modal-header {
        width: 250px;
        height: 40px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .ad-sidebar {
        height: 200px;
    }
}
/* Upload Progress Modal Styles */
#uploadProgressModal .modal-content {
    border-width: 3px;
}

#uploadProgressBar {
    transition: width 0.3s ease;
}

#uploadStatusText {
    display: block;
    color: #6c757d;
    font-size: 0.9rem;
}
/* FAQ Section - Styling to match existing design */
section.mt-5 {
    margin-top: 3rem !important;
    padding: 1.5rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

section.mt-5 h2 {
    color: #212529;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f0f7ff;
}

/* Accordion Styling */
.accordion {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #dee2e6;
}

.accordion-item {
    background-color: white;
    border-bottom: 1px solid #dee2e6;
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-button {
    background-color: white;
    color: #212529;
    font-weight: 500;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
    background-color: #f8f9fa;
    color: #1d4ed8;
    box-shadow: none;
}

.accordion-button:hover {
    background-color: #f0f7ff;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.accordion-button::after {
    background-size: 1.25rem;
    transition: transform 0.3s ease;
}

.accordion-body {
    padding: 1.25rem 1.5rem;
    background-color: white;
    border-top: 1px solid #f0f7ff;
    color: #495057;
    line-height: 1.6;
}

/* Responsive Adjustments */
@media (max-width: 767px) {
    section.mt-5 {
        padding: 1rem;
    }
    
    .accordion-button {
        padding: 0.85rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .accordion-body {
        padding: 1rem 1.25rem;
        font-size: 0.9rem;
    }
}