/* ==========================
   Custom Alert / Confirm Dialog
   ========================== */

.dialog-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.dialog-overlay.hidden {
    display: none;
}

.dialog-box {
    background: #fff;
    padding: 24px 28px;
    border-radius: 10px;
    max-width: 320px;
    width: 90%;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    animation: fadeInScale 0.2s ease-out;
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.85);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.dialog-message {
    font-size: 1rem;
    margin-bottom: 18px;
    line-height: 1.6;
    white-space: pre-line;
}

.dialog-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.dialog-button {
    background: #ff9900;
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: 7px;
    font-size: 1rem;
    cursor: pointer;
}

.dialog-button.danger {
    background: #b00020;
}

.dialog-button.cancel {
    background: #999;
}

.dialog-button:hover {
    opacity: 0.9;
}