/**
 * Bien SweetAlert2 theme — matches login / corporate shell
 */

.bien-swal-popup,
.swal2-popup.bien-swal-popup {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif !important;
    border-radius: 16px !important;
    /* Shadow ring instead of border — avoids white gap under timer bar */
    border: 0 !important;
    box-shadow:
        0 0 0 1px #d5dde5,
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 20px 48px rgba(15, 23, 42, 0.16) !important;
    padding: 1.75rem 1.5rem 1.75rem !important;
    overflow: hidden !important;
    background: #fff !important;
}

.bien-swal-title,
.swal2-popup.bien-swal-popup .swal2-title {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.03em !important;
    color: #0f172a !important;
    margin-top: 0.5rem !important;
}

.bien-swal-html,
.swal2-popup.bien-swal-popup .swal2-html-container {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important;
    font-size: 0.9rem !important;
    color: #64748b !important;
    line-height: 1.5 !important;
}

.bien-swal-confirm,
.swal2-popup.bien-swal-popup .swal2-confirm.bien-swal-confirm {
    background: #1A5F7A !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 10px !important;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    padding: 0.65rem 1.35rem !important;
    box-shadow: none !important;
    min-width: 96px;
}

.bien-swal-confirm:hover,
.swal2-popup.bien-swal-popup .swal2-confirm.bien-swal-confirm:hover {
    background: #13485c !important;
}

.bien-swal-cancel,
.swal2-popup.bien-swal-popup .swal2-cancel.bien-swal-cancel {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border: 1px solid #d5dde5 !important;
    border-radius: 10px !important;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    padding: 0.65rem 1.35rem !important;
    box-shadow: none !important;
}

.bien-swal-cancel:hover {
    background: #e2e8f0 !important;
}

.swal2-popup.bien-swal-popup .swal2-icon {
    margin-top: 0.25rem;
    border-width: 3px;
}

.swal2-popup.bien-swal-popup .swal2-icon.swal2-success {
    border-color: rgba(13, 124, 110, 0.35);
    color: #0D7C6E;
}

.swal2-popup.bien-swal-popup .swal2-icon.swal2-success [class^=swal2-success-line] {
    background-color: #0D7C6E !important;
}

.swal2-popup.bien-swal-popup .swal2-icon.swal2-success .swal2-success-ring {
    border-color: rgba(13, 124, 110, 0.3) !important;
}

.swal2-popup.bien-swal-popup .swal2-icon.swal2-error {
    border-color: rgba(185, 28, 28, 0.3);
    color: #b91c1c;
}

.swal2-popup.bien-swal-popup .swal2-icon.swal2-error [class^=swal2-x-mark-line] {
    background-color: #b91c1c !important;
}

.swal2-popup.bien-swal-popup .swal2-icon.swal2-warning {
    border-color: rgba(180, 83, 9, 0.35);
    color: #b45309;
}

.swal2-popup.bien-swal-popup .swal2-icon.swal2-info {
    border-color: rgba(26, 95, 122, 0.35);
    color: #1A5F7A;
}

/*
 * Timer flush to bottom edge.
 * Do NOT force width on the bar — SweetAlert animates width as the timer runs.
 */
.swal2-popup.bien-swal-popup .swal2-timer-progress-bar-container {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    height: 4px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border-radius: 0 !important;
    background: rgba(26, 95, 122, 0.14) !important;
}

.bien-swal-timer,
.swal2-popup.bien-swal-popup .swal2-timer-progress-bar {
    height: 4px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #1A5F7A !important;
}

/* Toast variant */
.swal2-popup.bien-swal-toast,
.swal2-popup.custom-toast {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important;
    border-radius: 12px !important;
    border: 0 !important;
    box-shadow:
        0 0 0 1px #d5dde5,
        0 8px 24px rgba(15, 23, 42, 0.12) !important;
    padding: 0.85rem 1rem 1rem !important;
    overflow: hidden !important;
    background: #fff !important;
}

.swal2-popup.bien-swal-toast .swal2-title,
.swal2-popup.custom-toast .swal2-title {
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: #0f172a !important;
}

.swal2-popup.bien-swal-toast .swal2-timer-progress-bar-container,
.swal2-popup.custom-toast .swal2-timer-progress-bar-container {
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    height: 3px !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    background: rgba(26, 95, 122, 0.14) !important;
}

.swal2-popup.bien-swal-toast .swal2-timer-progress-bar,
.swal2-popup.custom-toast .swal2-timer-progress-bar {
    height: 3px !important;
    margin: 0 !important;
    border-radius: 0 !important;
    background: #1A5F7A !important;
}

.swal2-container.swal2-backdrop-show {
    background: rgba(15, 23, 42, 0.35) !important;
}
