/* PDF Viewer Modal Styles */
#pdfViewerModal .modal-xl {
    max-width: 50%;
}

@media (max-width: 1200px) {
    #pdfViewerModal .modal-xl {
        max-width: 90%;
    }
}

#pdfViewerModal .modal-content {
    border-radius: 12px;
    overflow: hidden;
}

#pdfViewerModal .modal-header {
    background: #2c5282;
    color: white;
    padding: 1rem 1.5rem;
}

#pdfViewerModal .modal-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: white !important;
}

#pdfViewerModal .btn-close {
    filter: brightness(0) invert(1);
}

#pdfViewerModal .pdf-toolbar {
    background-color: #f8f9fa !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#pdfViewerModal .pdf-toolbar .btn {
    border-radius: 6px;
    transition: all 0.2s ease;
}

#pdfViewerModal .pdf-toolbar .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

#pdfViewerModal .page-info {
    font-size: 0.95rem;
    font-weight: 500;
    color: #495057;
}

#pdfViewerModal .pdf-canvas-wrapper {
    background: linear-gradient(to bottom, #f8f9fa 0%, #e9ecef 100%);
}

#pdfViewerModal #pdf-canvas {
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    border-radius: 8px;
    max-width: 100%;
    height: auto;
    background: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #pdfViewerModal .modal-xl {
        max-width: 98%;
        margin: 0.5rem;
    }

    #pdfViewerModal .pdf-toolbar .col-md-4 {
        margin-bottom: 0.5rem;
    }

    #pdfViewerModal .pdf-toolbar .text-end {
        text-align: left !important;
    }

    #pdfViewerModal .pdf-canvas-wrapper {
        max-height: 60vh !important;
        padding: 1rem !important;
    }
}

/* Loading animation */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

#pdfViewerModal .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
