/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background-color: var(--white);
    margin: auto;
    padding: 0;
    border-radius: 10px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    box-shadow: 0 5px 30px rgba(0,0,0,0.3);
    animation: slideDown 0.3s;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 2px solid var(--light-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--secondary-color);
    color: var(--white);
    border-radius: 10px 10px 0 0;
}

.modal-header h2 {
    margin: 0;
    color: var(--white);
    font-size: 1.8rem;
}

.modal-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.modal-close:hover,
.modal-close:focus {
    background-color: rgba(255, 255, 255, 0.2);
    outline: none;
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
    line-height: 1.8;
}

.modal-body h1 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.modal-body h2 {
    color: var(--secondary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.modal-body h3 {
    color: var(--secondary-color);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.modal-body p {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.modal-body ul,
.modal-body ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.modal-body li {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.modal-body strong {
    color: var(--secondary-color);
}

.modal-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.modal-body table th,
.modal-body table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--light-gray);
}

.modal-body table th {
    background-color: var(--light-gray);
    color: var(--secondary-color);
    font-weight: 600;
}

.last-updated {
    color: var(--dark-gray);
    font-style: italic;
    margin-bottom: 2rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .modal-header {
        padding: 1rem 1.5rem;
    }

    .modal-header h2 {
        font-size: 1.5rem;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .modal-body h1 {
        font-size: 1.5rem;
    }

    .modal-body h2 {
        font-size: 1.3rem;
    }

    .modal-body table {
        font-size: 0.9rem;
    }

    .modal-body table th,
    .modal-body table td {
        padding: 0.5rem;
    }
}


