/* === MODAL OVERLAY === */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45); /* dark transparent */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

/* Hidden state */
.hidden {
    display: none;
}

/* === MODAL BOX === */
.modal-content {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    min-width: 280px;
    max-width: 400px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    animation: fadeIn 0.2s ease-out;
    text-align: center;
}

/* Title */
.modal-content h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* Select styling */
.modal-content select {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #bbb;
    margin-bottom: 18px;
    font-size: 1rem;
}

/* Buttons */
.modal-content button {
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
}

.submit-btn {
    background-color: #4caf50;
    color: white;
}

.cancel-btn {
    background-color: #ccc;
    margin-left: 10px;
}

/* Nice fade-in animation */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}
