/* Overlay */
#modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Hidden utility */
.hidden {
    display: none !important;
}

/* Modal box */
#modal-box {
    background: rgba(25, 25, 25, 0.92);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 24px;
    width: 380px;
    border-radius: 14px;
    position: relative;
    box-shadow:
        0 0 25px rgba(0, 0, 0, 0.6),
        0 0 10px rgba(0, 153, 255, 0.15);
    animation: popup 0.22s ease-out;
    font-family: system-ui, sans-serif;
    color: #f2f2f2;
}

/* Popup animation */
@keyframes popup {
    from {
        transform: scale(0.88);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Close button */
.close-btn {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    font-size: 22px;
    font-weight: 400;
    cursor: pointer;
    color: #888;
    transition: 0.15s;
}

.close-btn:hover {
    color: #fff;
    transform: scale(1.1);
}

/* Title */
#modal-title {
    font-size: 21px;
    margin: 0 0 10px;
    font-weight: 600;
    color: #fafafa;
}

/* Description */
#modal-desc {
    margin: 0 0 26px;
    color: #bdbdbd;
    line-height: 1.55;
}

/* Action buttons */
#modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Button base */
.btn {
    border: none;
    padding: 8px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: 0.2s;
}

/* OK button (blue glow) */
.ok-btn {
    background: linear-gradient(135deg, #0a84ff, #0066d6);
    color: white;
    box-shadow: 0 0 10px rgba(0, 133, 255, 0.35);
}

.ok-btn:hover {
    background: linear-gradient(135deg, #0a8fff, #0070e0);
    transform: translateY(-1px);
    box-shadow: 0 0 14px rgba(0, 140, 255, 0.45);
}

/* Cancel button (soft grey) */
.cancel-btn {
    background: #2d2d2d;
    color: #ccc;
}

.cancel-btn:hover {
    background: #3a3a3a;
    color: #eee;
    transform: translateY(-1px);
}


/* ========================================================= */
/* 🔥 DANGER THEME OVERRIDES */
/* Applies when .modal-danger is applied to #modal-box       */
/* ========================================================= */

#modal-box.modal-danger {
    border: 1px solid rgba(255, 60, 60, 0.45);
    box-shadow:
        0 0 25px rgba(255, 0, 0, 0.35),
        0 0 10px rgba(255, 70, 70, 0.25);
}

#modal-box.modal-danger #modal-title {
    color: #ff6b6b;
}

#modal-box.modal-danger #modal-desc {
    color: #ffb3b3;
}

#modal-box.modal-danger .close-btn {
    color: #b88;
}

#modal-box.modal-danger .close-btn:hover {
    color: #f88;
}

/* Danger OK button */
#modal-box.modal-danger .ok-btn {
    background: linear-gradient(135deg, #ff3b3b, #d40000);
    color: white;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.35);
}

#modal-box.modal-danger .ok-btn:hover {
    background: linear-gradient(135deg, #ff4747, #e00000);
    transform: translateY(-1px);
    box-shadow: 0 0 14px rgba(255, 0, 0, 0.5);
}

/* Slightly red-toned cancel button */
#modal-box.modal-danger .cancel-btn {
    background: #3a1f1f;
    color: #ffbcbc;
}

#modal-box.modal-danger .cancel-btn:hover {
    background: #512626;
    color: #ffdada;
}



