/**
 * SweetAlert2 Dark Theme Customization
 * Integração com o tema shadcn/ui dark mode
 */

/* Popup container */
.swal2-dark-popup {
    background: hsl(var(--card)) !important;
    border: 1px solid hsl(var(--border)) !important;
    border-radius: var(--radius) !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2) !important;
}

/* Title */
.swal2-dark-title {
    color: hsl(var(--foreground)) !important;
    font-weight: 600 !important;
}

/* Content */
.swal2-dark-content {
    color: hsl(var(--muted-foreground)) !important;
}

/* Icons */
.swal2-icon.swal2-success [class^='swal2-success-line'] {
    background-color: hsl(142, 76%, 36%) !important;
}

.swal2-icon.swal2-success .swal2-success-ring {
    border-color: rgba(34, 197, 94, 0.3) !important;
}

.swal2-icon.swal2-error [class^='swal2-x-mark-line'] {
    background-color: hsl(0, 63%, 31%) !important;
}

.swal2-icon.swal2-warning {
    border-color: hsl(38, 92%, 50%) !important;
    color: hsl(38, 92%, 50%) !important;
}

.swal2-icon.swal2-info {
    border-color: hsl(217.2, 91.2%, 59.8%) !important;
    color: hsl(217.2, 91.2%, 59.8%) !important;
}

.swal2-icon.swal2-question {
    border-color: hsl(217.2, 91.2%, 59.8%) !important;
    color: hsl(217.2, 91.2%, 59.8%) !important;
}

/* Timer progress bar */
.swal2-timer-progress-bar {
    background: hsl(var(--primary)) !important;
}

/* Input fields */
.swal2-input,
.swal2-textarea {
    background: hsl(var(--background)) !important;
    border: 1px solid hsl(var(--input)) !important;
    color: hsl(var(--foreground)) !important;
    border-radius: calc(var(--radius) - 2px) !important;
}

.swal2-input:focus,
.swal2-textarea:focus {
    border-color: hsl(var(--ring)) !important;
    outline: none !important;
    box-shadow: 0 0 0 2px hsl(var(--ring) / 0.2) !important;
}

/* Validation message */
.swal2-validation-message {
    background: hsl(var(--destructive)) !important;
    color: hsl(var(--destructive-foreground)) !important;
    border-radius: calc(var(--radius) - 2px) !important;
}

/* Close button */
.swal2-close {
    color: hsl(var(--muted-foreground)) !important;
}

.swal2-close:hover {
    color: hsl(var(--foreground)) !important;
}

/* Toast positioning improvements */
.swal2-container.swal2-top-end {
    top: 1rem !important;
    right: 1rem !important;
}

/* Loading spinner */
.swal2-loader {
    border-color: hsl(var(--primary)) transparent hsl(var(--primary)) transparent !important;
}

