/* The dark background */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.modal-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    width: 450px;
    
    /* CRITICAL FOR 7 DAYS */
    max-height: 80vh;    /* Modal only takes up 80% of screen height */
    overflow-y: auto;    /* Adds a scrollbar inside the modal */
    
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Optional: Clean scrollbar style */
.modal-content::-webkit-scrollbar {
    width: 8px;
}
.modal-content::-webkit-scrollbar-thumb {
    background: #dadce0;
    border-radius: 10px;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Darkens the background */
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-overlay.active {
    display: flex; /* Shows when script runs */
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    width: 400px;
    position: relative;
}

.slot-btn {
    background: #0A76C0;
    color: white;
    border: none;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
}

/* Show modal when active */
.modal-overlay.active {
    display: flex;
}

/* The Pop-up Box */
.modal-content {
    background: white;
    width: 90%;
    max-width: 450px;
    padding: 25px;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.close-modal {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 28px;
    cursor: pointer;
    color: #666;
}
