﻿/* =========================================================
   CONFIRM DIALOG OVERLAY
   ========================================================= */

.confirm-dialog-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 24px;
}

/* =========================================================
   DIALOG CONTAINER
   ========================================================= */

.confirm-dialog-container {
    width: 100%;
    max-width: 460px;
    background: #ffffff;
    border-radius: 28px;
    padding: 30px;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.18);
    animation: dialogShow .22s ease;
    position: relative;
}

/* =========================================================
   HEADER
   ========================================================= */

.confirm-dialog-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

/* =========================================================
   ICON
   ========================================================= */

.confirm-dialog-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

    /* =========================================================
   ICON TYPES
   ========================================================= */

    .confirm-dialog-icon.danger {
        background: #fef2f2;
        color: #dc2626;
    }

    .confirm-dialog-icon.warning {
        background: #fff7ed;
        color: #ea580c;
    }

    .confirm-dialog-icon.info {
        background: #eff6ff;
        color: #2563eb;
    }

/* =========================================================
   CONTENT
   ========================================================= */

.confirm-dialog-content {
    flex: 1;
    padding-top: 4px;
}

    .confirm-dialog-content h3 {
        margin: 0;
        font-size: 22px;
        font-weight: 700;
        color: #0f172a;
        line-height: 1.3;
    }

    .confirm-dialog-content p {
        margin: 12px 0 0;
        color: #64748b;
        line-height: 1.7;
        font-size: 15px;
        max-width: 320px;
    }

/* =========================================================
   FOOTER
   ========================================================= */

.confirm-dialog-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 14px;
    margin-top: 30px;
}

    /* =========================================================
   BUTTONS COMMON
   ========================================================= */

    .confirm-dialog-footer button {
        min-width: 110px;
        height: 48px;
        border: none;
        border-radius: 14px;
        font-weight: 600;
        cursor: pointer;
        transition: all .2s ease;
    }

    /* =========================================================
   SECONDARY BUTTON
   ========================================================= */

    .confirm-dialog-footer .secondary-btn {
        background: #f8fafc;
        color: #0f172a;
        border: 1px solid #e2e8f0;
    }

        .confirm-dialog-footer .secondary-btn:hover {
            background: #f1f5f9;
        }

/* =========================================================
   DANGER BUTTON
   ========================================================= */

.danger-btn {
    background: #dc2626;
    color: white;
}

    .danger-btn:hover {
        background: #b91c1c;
    }

/* =========================================================
   WARNING BUTTON
   ========================================================= */

.warning-btn {
    background: #ea580c;
    color: white;
}

    .warning-btn:hover {
        background: #c2410c;
    }

/* =========================================================
   PRIMARY BUTTON
   ========================================================= */

.primary-btn {
    background: linear-gradient( 135deg, #4f46e5, #6366f1 );
    color: white;
}

    .primary-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 10px 25px rgba(99, 102, 241, 0.28);
    }

/* =========================================================
   ANIMATION
   ========================================================= */

@keyframes dialogShow {

    from {
        opacity: 0;
        transform: translateY(12px) scale(.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 640px) {

    .confirm-dialog-container {
        padding: 24px;
        border-radius: 24px;
    }

    .confirm-dialog-header {
        gap: 16px;
    }

    .confirm-dialog-icon {
        width: 56px;
        height: 56px;
        font-size: 24px;
    }

    .confirm-dialog-content h3 {
        font-size: 20px;
    }

    .confirm-dialog-footer {
        flex-direction: column-reverse;
    }

        .confirm-dialog-footer button {
            width: 100%;
        }
}
