/* Fix SweetAlert Font to Match Theme */
.swal2-popup {
    font-family: inherit !important;
    border-radius: 1rem !important;
    padding: 1.5rem !important;
}

.swal2-title {
    font-size: 1.25rem !important;
    font-weight: 525 !important;
    color: #1e293b !important;
}

.swal2-html-container {
    font-size: 0.95rem !important;
    color: #64748b !important;
}

/* Force Icon Colors based on Type */
.swal2-icon.swal2-error {
    color: #ef4444 !important;
    border-color: #fecaca !important;
}
.swal2-icon.swal2-error [class^='swal2-x-mark-line'] {
    background-color: #ef4444 !important;
}

.swal2-icon.swal2-success {
    color: #10b981 !important;
    border-color: #a7f3d0 !important;
}
.swal2-icon.swal2-success [class^='swal2-success-line'] {
    background-color: #10b981 !important;
}
.swal2-icon.swal2-success .swal2-success-ring {
    border: .25em solid rgba(16, 185, 129, .2) !important;
}

.swal2-icon.swal2-warning {
    color: #f59e0b !important;
    border-color: #fde68a !important;
}

.swal2-icon.swal2-info {
    color: #3b82f6 !important;
    border-color: #bfdbfe !important;
}

.swal2-icon.swal2-question {
    color: #64748b !important;
    border-color: #e2e8f0 !important;
}

/* Tombol Konfirmasi SweetAlert (Match Brand Color) */
.swal2-styled.swal2-confirm {
    background-color: var(--color-brand-600); /* Removed !important to allow JS overrides */
    border-radius: 0.75rem !important;
    padding: 10px 24px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 6px -1px color-mix(in srgb, var(--color-brand-600), transparent 70%) !important;
}

.swal2-styled.swal2-confirm:focus {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-brand-600), transparent 50%) !important;
}

/* Tombol Batal SweetAlert (Red/Danger) */
.swal2-styled.swal2-cancel {
    background-color: var(--color-danger) !important;
    /* Dynamic Danger Color */
    border-radius: 0.75rem !important;
    padding: 10px 24px !important;
    font-weight: 500 !important;
    color: white !important;
}