/* SweetAlert2 Custom Styles */
/* ======================== */

/* Base Icon Styling */
.swal2-icon {
    position: relative;
    box-sizing: content-box;
    justify-content: center;
    width: 5em;
    height: 5em;
    margin: 1.25em auto 1.875em;
    border: 0.25em solid transparent;
    border-radius: 50%;
    font-family: inherit;
    line-height: 5em;
    cursor: default;
    user-select: none;
}

/* Success Icon */
.swal2-icon.swal2-success {
    border-color: #2ecc71 !important;
    color: #2ecc71 !important;
}

.swal2-icon.swal2-success .swal2-success-ring {
    border-color: rgba(46, 204, 113, 0.3) !important;
}

.swal2-icon.swal2-success [class^='swal2-success-line'] {
    background-color: #2ecc71 !important;
}

/* Error Icon - Applied everywhere */
.swal2-icon.swal2-error,
.swal2-custom-icon.swal2-error {
    border-color: #f27474 !important;
    color: #f27474 !important;
}

.swal2-icon.swal2-error [class^='swal2-x-mark-line'],
.swal2-custom-icon.swal2-error [class^='swal2-x-mark-line'] {
    background-color: #f27474 !important;
}

/* Warning Icon */
.swal2-icon.swal2-warning {
    border-color: #ffc107 !important;
    color: #ffc107 !important;
}

.swal2-icon.swal2-warning .swal2-icon-content {
    color: #ffc107 !important;
}

.swal2-icon.swal2-warning .swal2-x-mark-line-left,
.swal2-icon.swal2-warning .swal2-x-mark-line-right {
    background-color: #ffc107 !important;
}

/* Info Icon */
.swal2-icon.swal2-info {
    border-color: #17a2b8 !important;
    color: #17a2b8 !important;
}

.swal2-icon.swal2-info .swal2-icon-content {
    color: #17a2b8 !important;
}

/* Question Icon */
.swal2-icon.swal2-question {
    border-color: #6c757d !important;
    color: #6c757d !important;
}

.swal2-icon.swal2-question .swal2-icon-content {
    color: #6c757d !important;
}

/* Toast Notifications */
.colored-toast {
    background-color: white !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 0 1.25rem rgba(0, 0, 0, 0.15) !important;
}

.colored-toast.swal2-icon-success {
    background-color: #2ecc71 !important;
}

.colored-toast.swal2-icon-error {
    background-color: #dc3545 !important;
}

.colored-toast.swal2-icon-warning {
    background-color: #ffc107 !important;
}

.colored-toast.swal2-icon-info {
    background-color: #17a2b8 !important;
}

.colored-toast .swal2-title,
.colored-toast .swal2-html-container {
    color: white !important;
}

/* Dialog Styling */
.swal2-custom-dialog {
    background-color: white !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 0 1.25rem rgba(0, 0, 0, 0.15) !important;
    padding: 1.5rem !important;
    max-width: 32em !important;
}

.swal2-custom-dialog .swal2-title {
    color: #212529 !important;
    font-size: 1.25rem !important;
    margin-bottom: 1rem !important;
}

.swal2-custom-dialog .swal2-html-container {
    color: #495057 !important;
    font-size: 1rem !important;
    margin-top: 0.5rem !important;
}

/* Button Styling */
.swal2-actions {
    gap: 0.75rem !important;
    margin: 1.25rem auto 0 !important;
}

.swal2-confirm.btn {
    background-color: #3085d6 !important;
    border-color: #3085d6 !important;
    padding: 0.375rem 0.75rem !important;
}

.swal2-cancel.btn {
    background-color: #d33 !important;
    border-color: #d33 !important;
    padding: 0.375rem 0.75rem !important;
}

/* Progress Bar */
.swal2-timer-progress-bar {
    height: 0.25em !important;
    background: rgba(255, 255, 255, 0.5) !important;
}

/* Fix missing icons for Info and Success toasts */
.colored-toast-info .swal2-icon.swal2-info [class^='swal2-info-line'] {
    background-color: white !important;
    height: 0.35em !important;
    border-radius: 0.2em !important;
}

.colored-toast-success .swal2-icon.swal2-success [class^='swal2-success-line'] {
    background-color: white !important;
    height: 0.35em !important;
}

.colored-toast-info .swal2-icon.swal2-info {
    border-color: #17a2b8 !important;
}

.colored-toast-success .swal2-icon.swal2-success {
    border-color: #2ecc71 !important;
}