/*____________________Modal___________________*/

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.modal-open {
    opacity: 1;
    visibility: visible;
}

/* Modal Container */
.modal {
    background: white;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.modal-open .modal {
    transform: scale(1);
}



.close-button {
  position: absolute;
  top: 1rem;
  right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.close-button:hover {
    background-color: #f0f0f0;
    color: #333;
}

.close-button:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Modal Body */
.modal-body {
    padding: 1.5rem;
    display: grid;
    gap: 1rem;
}

.modal-body p {
    color: #555;
    margin-bottom: 1rem;
}

.modal-body p:last-child {
    margin-bottom: 0;
}