/* Modal Fix CSS - Ensure modal works properly */

#modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 9999 !important;
}

#modal-overlay.d-none {
    display: none !important;
}

.modal-content {
    background: white !important;
    padding: 2rem !important;
    border-radius: 1rem !important;
    max-width: 700px !important;
    width: 90% !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    position: relative !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

#modal-close {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    background: none !important;
    border: none !important;
    font-size: 1.5rem !important;
    cursor: pointer !important;
    color: #666 !important;
    z-index: 10000 !important;
}

#modal-close:hover {
    color: #000 !important;
}

/* Ensure modal is clickable */
#modal-overlay * {
    pointer-events: auto !important;
}

/* Debug styles - remove after testing */
.debug-modal {
    border: 2px solid red !important;
}

.debug-close-btn {
    background-color: yellow !important;
    color: black !important;
}