/**
 * LexPro unified dialog styling — applied to every Swal popup that uses
 * the `lp-swal-popup` class (i.e. all dialogs opened via LPDialog.*).
 *
 * Designed to match the Metronic theme: rounded card, soft shadow,
 * brand-aligned buttons, RTL-aware.
 */

.swal2-container { z-index: 11000; }

/* ── Popup card ─────────────────────────────────────────── */
.swal2-popup.lp-swal-popup {
    border-radius: 18px;
    padding: 28px 26px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
    max-width: 460px;
}

[data-bs-theme="dark"] .swal2-popup.lp-swal-popup {
    background: #1e1e2d;
    color: #e2e8f0;
}

/* ── Icon ───────────────────────────────────────────────── */
.swal2-icon.lp-swal-icon {
    margin: 4px auto 14px;
    transform: scale(0.85);
}

/* ── Title ──────────────────────────────────────────────── */
.swal2-title.lp-swal-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
}
[data-bs-theme="dark"] .swal2-title.lp-swal-title { color: #f1f5f9; }

/* ── Text ───────────────────────────────────────────────── */
.swal2-html-container.lp-swal-text {
    font-size: 0.92rem;
    font-weight: 500;
    color: #475569;
    line-height: 1.6;
    margin-top: 8px;
}
[data-bs-theme="dark"] .swal2-html-container.lp-swal-text { color: #cbd5e1; }

/* ── Action bar ─────────────────────────────────────────── */
.swal2-actions.lp-swal-actions {
    margin-top: 22px;
    gap: 8px;
    flex-wrap: wrap;
}

/* ── Confirm / Cancel buttons (use Bootstrap btn styles) ── */
.swal2-styled.lp-swal-confirm,
.swal2-styled.lp-swal-cancel {
    box-shadow: none !important;
    border-radius: 10px;
    font-size: 0.88rem;
    padding: 10px 22px;
    min-width: 110px;
}
.swal2-styled.lp-swal-confirm:focus,
.swal2-styled.lp-swal-cancel:focus {
    box-shadow: 0 0 0 4px rgba(114, 57, 234, 0.18) !important;
}

/* ── Toast variant (top-right small notification) ───────── */
.swal2-popup.lp-swal-toast {
    background: #1e293b;
    color: #fff;
    border-radius: 12px;
    padding: 14px 18px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}
.swal2-popup.lp-swal-toast .swal2-title {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
}

/* ── RTL adjustments ───────────────────────────────────── */
[dir="rtl"] .swal2-popup.lp-swal-popup,
[dir="rtl"] .swal2-popup.lp-swal-toast {
    direction: rtl;
}

/* Subtle entrance / exit animations */
@keyframes lpSwalIn  { from { opacity: 0; transform: scale(.92) } to { opacity: 1; transform: scale(1) } }
@keyframes lpSwalOut { from { opacity: 1 } to { opacity: 0; transform: scale(.96) } }
.lp-swal-show { animation: lpSwalIn  .22s ease-out both; }
.lp-swal-hide { animation: lpSwalOut .15s ease-in both; }
