﻿.dialog-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background-color: rgba(17, 24, 39, 0.4);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease-out;
}

.dialog-box {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 30px 20px;
    width: 90%;
    max-width: 380px;
    text-align: center;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    /* 🌟 Playful bouncy animation */
    animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dialog-icon {
    font-size: 3.5rem;
    line-height: 1;
    margin-bottom: 15px;
    animation: float 2s ease-in-out infinite;
}

.dialog-title {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
    color: #1f2937;
    font-weight: 700;
}

.dialog-text {
    margin: 0 0 25px 0;
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.5;
}

.dialog-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn-dialog {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.1s, filter 0.2s;
}

    .btn-dialog:hover {
        transform: translateY(-2px);
        filter: brightness(1.05);
    }

    .btn-dialog:active {
        transform: translateY(1px);
    }

.btn-cancel {
    background-color: #f3f4f6;
    color: #4b5563;
}

.btn-confirm {
    background-color: #3b82f6;
    color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}
