/* ===== PDF MODAL ===== */
.pdf-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.pdf-modal.active {
    display: block;
}

/* Overlay / Mask */
.pdf-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: -1;
}

/* Modal Content */
.pdf-modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 900px;
    height: 85vh;
    max-height: 800px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

/* Modal Body - PDF Viewer */
.pdf-modal-body {
    flex: 1;
    padding: 0;
    background: #f8f9fa;
    overflow: hidden;
}

.pdf-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #ffffff;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .pdf-modal-content {
        width: 95%;
        height: 90vh;
        max-height: none;
        border-radius: 12px;
    }
    
    .pdf-modal-header {
        padding: 0.75rem 1rem;
    }
    
    .pdf-modal-title {
        font-size: 1rem;
    }
    
    .pdf-modal-footer {
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 576px) {
    .pdf-modal-content {
        width: 100%;
        height: 100%;
        max-height: none;
        border-radius: 0;
    }
    
    .pdf-modal-header {
        padding: 0.6rem 0.8rem;
    }
}