/* ===========================
   SWEETALERT2 CUSTOMIZATION
   FOR DESIGN SYSTEM
   =========================== */

/* SweetAlert2 - Main Container */
.swal2-container {
    z-index: 9999 !important;
}

.swal2-popup {
    border-radius: 16px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
    border: none !important;
    overflow: hidden;
}

.swal2-header {
    padding: 0;
}

.swal2-title {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #333 !important;
    margin-top: 20px !important;
    letter-spacing: -0.5px;
}

.swal2-html-container {
    padding: 20px 24px !important;
    font-size: 14px;
    color: #666;
}

/* SweetAlert2 - Icon Styling */
.swal2-icon {
    border-width: 3px !important;
    border-radius: 50% !important;
}

.swal2-icon.swal2-success {
    border-color: #28a745 !important;
    color: #28a745 !important;
}

.swal2-icon.swal2-error {
    border-color: #dc3545 !important;
    color: #dc3545 !important;
}

.swal2-icon.swal2-info {
    border-color: #4a90e2 !important;
    color: #4a90e2 !important;
}

.swal2-icon.swal2-warning {
    border-color: #fd7e14 !important;
    color: #fd7e14 !important;
}

/* SweetAlert2 - Buttons */
.swal2-actions {
    gap: 12px !important;
    padding: 0 24px 20px !important;
}

.swal2-confirm,
.swal2-cancel {
    border-radius: 8px !important;
    font-weight: 600 !important;
    padding: 10px 24px !important;
    font-size: 14px !important;
    border: none !important;
    transition: all 0.3s ease !important;
    min-width: 100px;
}

.swal2-confirm {
    background: linear-gradient(135deg, #ed1c24, #ed1c24) !important;
    color: white !important;
}

.swal2-confirm:hover {
    background: linear-gradient(135deg, #ed1c24, #ed1c24) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3) !important;
}

.swal2-cancel {
    background: white !important;
    color: #333 !important;
    border: 2px solid #e0e0e0 !important;
}

.swal2-cancel:hover {
    background: #f9fafb !important;
    border-color: #4a90e2 !important;
    color: #4a90e2 !important;
}

/* SweetAlert2 - Form Controls */
.swal2-input {
    border: 1.5px solid #e0e0e0 !important;
    border-radius: 8px !important;
    padding: 12px 15px !important;
    font-size: 14px !important;
    margin-bottom: 15px !important;
    transition: all 0.2s ease !important;
}

.swal2-input:focus {
    border-color: #4a90e2 !important;
    box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.1) !important;
}

.swal2-select {
    border: 1.5px solid #e0e0e0 !important;
    border-radius: 8px !important;
    padding: 12px 15px !important;
    font-size: 14px !important;
    transition: all 0.2s ease !important;
}

.swal2-select:focus {
    border-color: #4a90e2 !important;
    box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.1) !important;
}

.swal2-textarea {
    border: 1.5px solid #e0e0e0 !important;
    border-radius: 8px !important;
    padding: 12px 15px !important;
    font-size: 14px !important;
    font-family: inherit !important;
    transition: all 0.2s ease !important;
}

.swal2-textarea:focus {
    border-color: #4a90e2 !important;
    box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.1) !important;
}

/* SweetAlert2 - Validation Message */
.swal2-validation-message {
    background: #f8d7da;
    color: #842029;
    border-radius: 6px;
    padding: 10px 12px;
    margin-top: 10px;
    font-size: 12px;
    font-weight: 600;
}

/* Bootstrap Form Control in SweetAlert */
.swal2-popup .form-control {
    border: 1.5px solid #e0e0e0 !important;
    border-radius: 8px !important;
    padding: 12px 15px !important;
    font-size: 14px !important;
}

.swal2-popup .form-control:focus {
    border-color: #4a90e2 !important;
    box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.1) !important;
}

/* SweetAlert2 - Backdrop */
.swal2-backdrop-show {
    background: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(4px);
}

/* Progress Steps */
.swal2-progress-steps {
    gap: 8px !important;
}

.swal2-progress-steps li {
    background-color: #e0e0e0 !important;
    height: 32px !important;
    width: 32px !important;
    line-height: 32px !important;
    border-radius: 50% !important;
    color: #666;
    font-weight: 600;
}

.swal2-progress-steps li.active {
    background: linear-gradient(135deg, #4a90e2, #357abd) !important;
    color: white;
}

/* Toast Customization */
.swal2-toast {
    border-radius: 10px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
}

.swal2-toast .swal2-title {
    font-size: 16px !important;
    margin-top: 10px !important;
}

.swal2-toast .swal2-close {
    color: #999;
}

.swal2-toast .swal2-close:focus {
    box-shadow: none !important;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

/* Loading Spinner in SweetAlert */
.swal2-loading {
    border-width: 3px !important;
}

.swal2-loading::after {
    background: linear-gradient(90deg, transparent, #4a90e2, transparent) !important;
}
