/* =========================================
   SWEETALERT2 - CITYCELL ELITE (PREMIUM 2026)
   ========================================= */

:root {
    --swal-radius: 32px;
    --swal-btn-radius: 16px;
    --swal-bg: #ffffff;
    --elite-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* 1. Z-INDEX ONLY */
div.swal2-container {
    z-index: 9999999 !important;
}

/* 2. PREMIUM TOAST STYLE (ORIGINAL PILL DESIGN) */
div.swal2-popup.swal2-toast {
    background: rgba(255, 255, 255, 0.98) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    backdrop-filter: blur(12px) !important;
    border-radius: 60px !important;
    padding: 8px 16px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid rgba(0, 0, 0, 0.03) !important;
    width: auto !important;
    display: flex !important;
    align-items: center !important;
    flex-direction: row !important;
}

.swal2-toast .swal2-title {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 800 !important;
    color: #475569 !important;
    margin: 0 0 0 8px !important;
    font-size: 0.9rem !important;
}

.swal2-toast .swal2-icon {
    margin: 0 !important;
    width: 24px !important;
    height: 24px !important;
    transform: scale(0.8) !important;
}

/* Specific Pill Overrides for success/error */
.swal2-toast.swal2-icon-success {
    border-bottom: 2px solid #10b981 !important;
}

.swal2-toast.swal2-icon-error {
    border-bottom: 2px solid #ef4444 !important;
}

.swal2-toast.swal2-icon-warning {
    border-bottom: 2px solid #f59e0b !important;
}

/* 3. ELITE MODAL STYLE */
div.swal2-popup:not(.swal2-toast) {
    background: var(--swal-bg) !important;
    border-radius: var(--swal-radius) !important;
    padding: 2.5rem 1.5rem !important;
    font-family: 'Outfit', sans-serif !important;
    box-shadow: var(--elite-shadow) !important;
}

/* Modal Title */
.swal2-title {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 900 !important;
    color: #0f172a !important;
    font-size: 1.8rem !important;
    letter-spacing: -0.5px !important;
    padding: 0 !important;
    margin-bottom: 0.8rem !important;
}

/* Modal Content */
.swal2-html-container {
    font-family: 'Inter', system-ui, sans-serif !important;
    font-weight: 600 !important;
    color: #64748b !important;
    font-size: 1rem !important;
    line-height: 1.6 !important;
    margin: 0 0 2rem 0 !important;
}

/* 4. ELITE BUTTONS STANDARDIZATION */
.swal2-actions {
    gap: 12px !important;
    margin-top: 5px !important;
    width: 100% !important;
}

.swal2-styled {
    border-radius: var(--swal-btn-radius) !important;
    padding: 14px 28px !important;
    font-weight: 850 !important;
    font-size: 1rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    border: none !important;
    flex: 1 !important;
}

/* Confirm Button (Elite Primary) */
.swal2-styled.swal2-confirm {
    background: #3b82f6 !important;
    /* var(--primary) fallback */
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3) !important;
}

.swal2-styled.swal2-confirm:hover {
    background: #2563eb !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 24px rgba(59, 130, 246, 0.4) !important;
}

/* Cancel Button (Elite Ghost) */
.swal2-styled.swal2-cancel {
    background: #f1f5f9 !important;
    color: #64748b !important;
    border: 1px solid #e2e8f0 !important;
}

.swal2-styled.swal2-cancel:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
    transform: translateY(-2px) !important;
}

/* Deny Button (Elite Red) */
.swal2-styled.swal2-deny {
    background: #ef4444 !important;
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3) !important;
}

/* 5. ICON STYLING */
.swal2-icon {
    border-width: 3px !important;
    margin-bottom: 1.5rem !important;
    transform: scale(1.1) !important;
}

/* Animation Overrides */
.swal2-show {
    animation: elite-modal-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@keyframes elite-modal-in {
    0% {
        transform: scale(0.9);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* 6. TOAST CONTAINER TRANSPARENCY */
body.swal2-toast-shown .swal2-container {
    background: transparent !important;
}