/* Modal Styles for Downloads */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 32px;
    max-width: 800px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e5e7eb;
}

.modal-header h2 {
    margin: 0;
    color: #1f2937;
    font-size: 24px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #6b7280;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.language-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.language-tab {
    padding: 10px 24px;
    border: 2px solid #e5e7eb;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    color: #4b5563;
}

.language-tab:hover {
    border-color: #0066cc;
    color: #0066cc;
}

.language-tab.active {
    background: #0066cc;
    color: white;
    border-color: #0066cc;
}

.language-tab.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.language-tab.disabled:hover {
    border-color: #e5e7eb;
    color: #4b5563;
}

.documents-list {
    display: grid;
    gap: 16px;
}

.document-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.3s ease;
    gap: 16px;
}

.document-item:hover {
    border-color: #0066cc;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.1);
}

.document-info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.document-icon {
    width: 40px;
    height: 40px;
    background: #eff6ff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.document-icon svg {
    width: 24px;
    height: 24px;
    fill: #0066cc;
}

.document-details {
    flex: 1;
    min-width: 0;
}

.document-details h4 {
    margin: 0 0 4px 0;
    color: #1f2937;
    font-size: 15px;
    font-weight: 600;
}

.document-details p {
    margin: 0;
    color: #6b7280;
    font-size: 13px;
}

.download-btn {
    padding: 8px 20px;
    background: #0066cc;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s ease;
    white-space: nowrap;
}

.download-btn:hover {
    background: #0052a3;
}

.modal-footer {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.download-all-btn {
    padding: 12px 28px;
    background: #059669;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.download-all-btn:hover {
    background: #047857;
}

.info-text {
    color: #6b7280;
    font-size: 13px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modal-content {
        padding: 24px;
        width: 95%;
        max-height: 90vh;
    }

    .modal-header h2 {
        font-size: 20px;
    }

    .document-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .download-btn {
        width: 100%;
    }

    .modal-footer {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .download-all-btn {
        width: 100%;
    }

    .language-tabs {
        flex-direction: column;
    }

    .language-tab {
        width: 100%;
        text-align: center;
    }
}





/* Notification Modal Styles */
.notification-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 99999;
    justify-content: center;
    align-items: center;
}

.notification-modal-overlay.active {
    display: flex;
}

.notification-modal 
{
  width: 90%;
  max-width: 900px;
  max-height: 90vh;  /* Ensure modal fits screen */
  background: white;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}


@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.notification-header {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    padding: 20px 24px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-header h2 {
    margin: 0;
    font-size: 22px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification-badge {
    background: #fbbf24;
    color: #92400e;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.notification-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    cursor: pointer;
    font-size: 28px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.notification-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.notification-pdf-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.notification-pdf-container iframe {
  flex: 1;
  width: 100%;
  height: 100%;
  border: none;
}

.pdf-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #6b7280;
}

.pdf-loading .spinner {
    border: 4px solid #f3f4f6;
    border-top: 4px solid #dc2626;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.notification-footer {
  background: #f9fafb;
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notification-footer-left {
    display: flex;
    gap: 12px;
    flex: 1;
}

.notification-acknowledge-btn {
    padding: 10px 24px;
    background: #059669;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.notification-acknowledge-btn:hover {
    background: #047857;
    transform: translateY(-2px);
}

.notification-download-btn {
    padding: 10px 24px;
    background: #0066cc;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.notification-download-btn:hover {
    background: #0052a3;
    transform: translateY(-2px);
}


@media (max-width: 768px) {
    .notification-modal { width: 95%; max-height: 90vh; }
    .notification-header h2 { font-size: 18px; }
    .notification-footer { flex-direction: column; }
    .notification-footer-left { width: 100%; flex-direction: column; }
    .notification-acknowledge-btn, .notification-download-btn { width: 100%; }
}

/* 1. Blue Header (like your image 2) */
.notification-header {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%) !important;
}

.notification-badge {
    background: #ef4444 !important;
    color: white !important;
    font-weight: 700 !important;
}

/* 2. Hide Buttons (removes empty space) */
.notification-footer {
    display: none !important;
}

/* 3. PDF Full Height (fills to bottom, no gap) */
.notification-pdf-container {
    min-height: 88vh !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    border-radius: 0 0 12px 12px !important;
}

.notification-modal {
    max-height: 96vh !important;
    overflow: hidden !important;
}
