/* =========================================================
   RSP UI - SWEETALERT2 THEME
   SweetAlert2 11.22.2
   Bootstrap 5
   ========================================================= */


/* =========================================================
   VARIABLES
   ========================================================= */
:root {
    --swal-primary: #22bab0;
    --swal-primary-hover: #1da69d;
    --swal-success: #198754;
    --swal-danger: #dc3545;
    --swal-warning: #ffc107;
    --swal-info: #0dcaf0;
    --swal-bg: #ffffff;
    --swal-text: #212529;
    --swal-muted: #6c757d;
    --swal-border: #e5e7eb;
    --swal-radius: 20px;
}

/* =========================================================
   POPUP
   ========================================================= */
.swal2-popup {
    width: 420px;
    padding: 30px;
    border-radius: var(--swal-radius) !important;
    background: var(--swal-bg) !important;
    color: var(--swal-text) !important;
    border: 1px solid var(--swal-border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .12) !important;
}

/* =========================================================
   TITLE
   ========================================================= */
.swal2-title {
    margin-top: 12px !important;
    padding: 0 !important;
    color: var(--swal-text) !important;
    font-size: 1.35rem !important;
    font-weight: 700 !important;
    letter-spacing: -.2px;
}

/* =========================================================
   TEXT
   ========================================================= */
.swal2-html-container,
.swal2-content {
    margin-top: 10px !important;
    color: var(--swal-muted) !important;
    font-size: .95rem !important;
    line-height: 1.6;
}

/* =========================================================
   ICON
   ========================================================= */
.swal2-icon {
    margin: 5px auto 10px !important;
    border-width: 3px !important;
}

/* =========================================================
   BUTTON CONTAINER
   ========================================================= */
.swal2-actions {
    margin-top: 25px !important;
    gap: 8px;
}

/* =========================================================
   ALL BUTTON
   ========================================================= */
.swal2-styled {
    min-width: 90px;
    min-height: 42px;
    padding: 9px 18px !important;
    border-radius: 10px !important;
    font-size: .9rem !important;
    font-weight: 600 !important;
    border: none !important;
    box-shadow: none !important;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}

/* =========================================================
   BUTTON HOVER
   ========================================================= */
.swal2-styled:hover {
    transform: translateY(-1px);
}

/* =========================================================
   CONFIRM
   ========================================================= */
.swal2-confirm {
    background: var(--swal-primary) !important;
    color: #ffffff !important;
}
.swal2-confirm:hover {
    background: var(--swal-primary-hover) !important;
    box-shadow: 0 5px 15px rgba(34, 186, 176, .25) !important;
}

/* =========================================================
   CANCEL
   ========================================================= */
.swal2-cancel {
    background: #6c757d !important;
    color: #ffffff !important;
}
.swal2-cancel:hover {
    background: #5c636a !important;
}

/* =========================================================
   DENY
   ========================================================= */
.swal2-deny {
    background: #ffc107 !important;
    color: #212529 !important;
}

/* =========================================================
   CLOSE BUTTON
   ========================================================= */
.swal2-close {
    color: var(--swal-muted) !important;
    font-size: 1.5rem !important;
    transition: .2s ease;
}
.swal2-close:hover {
    color: var(--swal-danger) !important;
}

/* =========================================================
   INPUT
   ========================================================= */
.swal2-input,
.swal2-textarea,
.swal2-select {
    border-radius: 10px !important;
    border: 1px solid var(--swal-border) !important;
    background: var(--swal-bg) !important;
    color: var(--swal-text) !important;
}
.swal2-input:focus,
.swal2-textarea:focus,
.swal2-select:focus {
    border-color: var(--swal-primary) !important;
    box-shadow: 0 0 0 .2rem rgba(34, 186, 176, .15) !important;
}

/* =========================================================
   BACKDROP
   ========================================================= */
.swal2-container.swal2-backdrop-show {
    background: rgba(15, 23, 42, .55) !important;
    backdrop-filter: blur(3px);
}

/* =========================================================
   LOADING
   ========================================================= */
.swal2-loader {
    border-color: var(--swal-primary) transparent var(--swal-primary) transparent !important;
}
/* =========================================================
   TOAST
   ========================================================= */
.swal2-toast {
    border-radius: 14px !important;
    background: var(--swal-bg) !important;
    color: var(--swal-text) !important;
    border: 1px solid var(--swal-border);
    box-shadow: 0 10px 35px rgba(0, 0, 0, .12) !important;
}

/* =========================================================
   DARK MODE
   ========================================================= */
[data-bs-theme="dark"] {
    --swal-bg: #212529;
    --swal-text: #f1f3f5;
    --swal-muted: #adb5bd;
    --swal-border: #3a4046;
}
[data-bs-theme="dark"] .swal2-popup {
    box-shadow: 0 20px 60px rgba(0, 0, 0, .45) !important;
}
[data-bs-theme="dark"] .swal2-html-container {
    color: var(--swal-muted) !important;
}
[data-bs-theme="dark"] .swal2-input,
[data-bs-theme="dark"] .swal2-textarea,
[data-bs-theme="dark"] .swal2-select {
    background: #2b3035 !important;
    border-color: #495057 !important;
    color: #ffffff !important;
}
[data-bs-theme="dark"] .swal2-close {
    color: #adb5bd !important;
}

/* =========================================================
   MOBILE
   ========================================================= */
@media (max-width: 576px) {
    .swal2-popup {
        width: calc(100% - 30px);
        padding: 25px 20px;
        border-radius: 18px !important;
    }
    .swal2-title {
        font-size: 1.2rem !important;
    }
    .swal2-html-container {
        font-size: .9rem !important;
    }
    .swal2-actions {
        width: 100%;
    }
    .swal2-styled {
        flex: 1;
    }
}