/*
  App theme for SweetAlert2 dialogs — matches Alert's navy/gold design.
  Loaded AFTER the CDN sweetalert2.min.css so these win. Uses !important on
  button colours to override SweetAlert's inline buttonsStyling.
  Brand: navy #0e2a47, gold #e6b14e, ink #1a2438 / muted #5a6478.
*/

.swal2-popup {
    border-radius: 16px !important;
    border-top: 4px solid #e6b14e;               /* gold chrome accent, matches the app */
    padding: 1.75rem 1.75rem 1.5rem !important;
    box-shadow: 0 18px 48px rgba(14, 42, 71, .22) !important;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.swal2-title {
    color: #0e2a47 !important;
    font-weight: 700 !important;
    font-size: 1.4rem !important;
    letter-spacing: .01em;
}

.swal2-html-container,
.swal2-content {
    color: #5a6478 !important;
    font-size: 1rem !important;
    line-height: 1.55 !important;
}

/* Buttons — match the app's solid navy primary + light ghost secondary */
.swal2-actions { gap: .5rem; margin-top: 1.4rem !important; }

.swal2-styled {
    border-radius: 10px !important;
    font-weight: 600 !important;
    padding: .62em 1.4em !important;
    box-shadow: none !important;
    transition: background-color .15s ease, transform .05s ease;
}
.swal2-styled:active { transform: translateY(1px); }

.swal2-styled.swal2-confirm {
    background-color: #0e2a47 !important;
    color: #ffffff !important;
    border: 1px solid #0e2a47 !important;
}
.swal2-styled.swal2-confirm:hover { background-color: #14213d !important; }

.swal2-styled.swal2-deny {
    background-color: #c0392b !important;
    color: #fff !important;
}

.swal2-styled.swal2-cancel {
    background-color: #e7ebf1 !important;
    color: #0e2a47 !important;
    border: 1px solid #dbe1e9 !important;
}
.swal2-styled.swal2-cancel:hover { background-color: #dbe1e9 !important; }

.swal2-styled:focus { box-shadow: 0 0 0 3px rgba(230, 177, 78, .45) !important; }

/* Icon tints — keep success/error semantic (green/red); brand the info/warning */
.swal2-icon.swal2-info {
    color: #0e2a47 !important;
    border-color: rgba(14, 42, 71, .35) !important;
}
.swal2-icon.swal2-warning {
    color: #b8860b !important;
    border-color: rgba(230, 177, 78, .55) !important;
}
.swal2-icon.swal2-question {
    color: #0e2a47 !important;
    border-color: rgba(14, 42, 71, .35) !important;
}

/* Inputs inside dialogs */
.swal2-input, .swal2-textarea, .swal2-select {
    border-radius: 10px !important;
    border: 1px solid #dbe1e9 !important;
}
.swal2-input:focus, .swal2-textarea:focus {
    border-color: #e6b14e !important;
    box-shadow: 0 0 0 3px rgba(230, 177, 78, .25) !important;
}

/* Toasts (toastr calls are re-pointed to Swal toasts) */
.swal2-toast { border-radius: 12px !important; border-top: 3px solid #e6b14e; }
.swal2-toast .swal2-title { font-size: 1rem !important; }

/* RTL polish for Arabic */
.swal2-rtl .swal2-popup { text-align: right; }
