/* ═══════════════════════════════════════════════════════════════
   SweetAlert2 Dark Theme - Matches QuantumOps UI
   This file MUST be loaded AFTER sweetalert2.min.css
   ═══════════════════════════════════════════════════════════════ */

/* Backdrop */
.swal2-container {
    background: rgba(0, 0, 0, 0.75) !important;
    backdrop-filter: blur(4px) !important;
}

/* Popup styling */
.swal2-popup {
    background: linear-gradient(145deg, rgb(17 24 39) 0%, rgb(10 15 25) 100%) !important;
    border: 1px solid rgb(55 65 81) !important;
    border-radius: 1rem !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 
                0 0 0 1px rgba(55, 65, 81, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    color: white !important;
}

/* Title styling */
.swal2-title {
    color: white !important;
    font-weight: 600 !important;
    font-size: 1.375rem !important;
}

/* Content/text styling */
.swal2-html-container,
.swal2-content {
    color: rgb(156 163 175) !important;
    font-size: 0.9375rem !important;
    line-height: 1.6 !important;
}

/* Close button */
.swal2-close {
    color: rgb(156 163 175) !important;
    transition: color 0.2s ease !important;
}

.swal2-close:hover {
    color: white !important;
}

.swal2-close:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Icon colors - Success (emerald) */
.swal2-icon.swal2-success {
    border-color: rgb(16 185 129) !important;
    color: rgb(16 185 129) !important;
}

.swal2-icon.swal2-success .swal2-success-ring {
    border-color: rgba(16, 185, 129, 0.3) !important;
}

.swal2-icon.swal2-success [class^='swal2-success-line'] {
    background-color: rgb(16 185 129) !important;
}

/* Icon colors - Error (red) */
.swal2-icon.swal2-error {
    border-color: rgb(239 68 68) !important;
    color: rgb(239 68 68) !important;
}

.swal2-icon.swal2-error [class^='swal2-x-mark-line'] {
    background-color: rgb(239 68 68) !important;
}

/* Icon colors - Warning (amber) */
.swal2-icon.swal2-warning {
    border-color: rgb(245 158 11) !important;
    color: rgb(245 158 11) !important;
}

/* Icon colors - Info (blue) */
.swal2-icon.swal2-info {
    border-color: rgb(59 130 246) !important;
    color: rgb(59 130 246) !important;
}

/* Icon colors - Question (purple) */
.swal2-icon.swal2-question {
    border-color: rgb(139 92 246) !important;
    color: rgb(139 92 246) !important;
}

/* Confirm button - emerald accent */
.swal2-confirm {
    background: linear-gradient(135deg, rgb(16 185 129) 0%, rgb(5 150 105) 100%) !important;
    border: none !important;
    border-radius: 0.5rem !important;
    color: white !important;
    font-weight: 500 !important;
    padding: 0.625rem 1.5rem !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.3) !important;
}

.swal2-confirm:hover {
    background: linear-gradient(135deg, rgb(5 150 105) 0%, rgb(4 120 87) 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 10px -1px rgba(16, 185, 129, 0.4) !important;
}

.swal2-confirm:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.4), 0 4px 6px -1px rgba(16, 185, 129, 0.3) !important;
}

/* Cancel button */
.swal2-cancel {
    background: rgb(55 65 81) !important;
    border: 1px solid rgb(75 85 99) !important;
    border-radius: 0.5rem !important;
    color: rgb(209 213 219) !important;
    font-weight: 500 !important;
    padding: 0.625rem 1.5rem !important;
    transition: all 0.2s ease !important;
}

.swal2-cancel:hover {
    background: rgb(75 85 99) !important;
    color: white !important;
}

.swal2-cancel:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(75, 85, 99, 0.4) !important;
}

/* Deny button (for 3-button dialogs) */
.swal2-deny {
    background: rgb(239 68 68) !important;
    border: none !important;
    border-radius: 0.5rem !important;
    color: white !important;
    font-weight: 500 !important;
    padding: 0.625rem 1.5rem !important;
    transition: all 0.2s ease !important;
}

.swal2-deny:hover {
    background: rgb(220 38 38) !important;
}

.swal2-deny:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.4) !important;
}

/* Input fields */
.swal2-input,
.swal2-textarea,
.swal2-select {
    background: rgb(31 41 55) !important;
    border: 1px solid rgb(55 65 81) !important;
    border-radius: 0.5rem !important;
    color: white !important;
    transition: border-color 0.2s ease !important;
}

.swal2-input:focus,
.swal2-textarea:focus,
.swal2-select:focus {
    border-color: rgb(16 185 129) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2) !important;
}

.swal2-input::placeholder,
.swal2-textarea::placeholder {
    color: rgb(107 114 128) !important;
}

/* File input */
.swal2-file {
    background: rgb(31 41 55) !important;
    border: 1px solid rgb(55 65 81) !important;
    border-radius: 0.5rem !important;
    color: white !important;
}

/* Checkbox and radio */
.swal2-checkbox,
.swal2-radio {
    color: rgb(156 163 175) !important;
}

/* Progress steps */
.swal2-progress-steps .swal2-progress-step {
    background: rgb(55 65 81) !important;
    color: rgb(156 163 175) !important;
}

.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step {
    background: rgb(16 185 129) !important;
    color: white !important;
}

.swal2-progress-steps .swal2-progress-step-line {
    background: rgb(55 65 81) !important;
}

/* Footer */
.swal2-footer {
    border-top: 1px solid rgb(55 65 81) !important;
    color: rgb(107 114 128) !important;
}

.swal2-footer a {
    color: rgb(16 185 129) !important;
}

.swal2-footer a:hover {
    color: rgb(5 150 105) !important;
}

/* Timer progress bar */
.swal2-timer-progress-bar {
    background: rgb(16 185 129) !important;
}

/* Validation message */
.swal2-validation-message {
    background: rgba(239, 68, 68, 0.1) !important;
    color: rgb(239 68 68) !important;
    border-radius: 0.375rem !important;
}

/* Loading spinner */
.swal2-loading .swal2-confirm {
    background: rgb(55 65 81) !important;
}

/* Toast variant */
.swal2-popup.swal2-toast {
    background: rgb(17 24 39) !important;
    border: 1px solid rgb(55 65 81) !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3) !important;
}

.swal2-popup.swal2-toast .swal2-title {
    color: white !important;
}

.swal2-popup.swal2-toast .swal2-html-container {
    color: rgb(156 163 175) !important;
}

/* Animation adjustments */
.swal2-show {
    animation: swal2-show 0.25s ease-out !important;
}

.swal2-hide {
    animation: swal2-hide 0.2s ease-in !important;
}

