/* SweetAlert2 Custom Theme */

/* Main Container */
.swal2-popup {
    border-radius: 16px !important;
    padding: 2rem !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
    font-family: inherit !important;
}

/* Title */
.swal2-title {
    color: #1e293b !important;
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    padding: 1rem 0 0.5rem !important;
}

/* Content Text */
.swal2-html-container {
    color: #475569 !important;
    font-size: 1rem !important;
    line-height: 1.6 !important;
    margin: 1rem 0 !important;
}

/* Icons */
.swal2-icon {
    margin: 1.5rem auto 1rem !important;
    border-width: 3px !important;
}

.swal2-icon.swal2-success {
    border-color: #10b981 !important;
}

.swal2-icon.swal2-success [class^='swal2-success-line'] {
    background-color: #10b981 !important;
}

.swal2-icon.swal2-success .swal2-success-ring {
    border-color: rgba(16, 185, 129, 0.3) !important;
}

.swal2-icon.swal2-error {
    border-color: #ef4444 !important;
}

.swal2-icon.swal2-error [class^='swal2-x-mark-line'] {
    background-color: #ef4444 !important;
}

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

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

.swal2-icon.swal2-question {
    border-color: #8b5cf6 !important;
    color: #8b5cf6 !important;
}

/* Buttons */
.swal2-actions {
    gap: 0.75rem !important;
    margin: 1.5rem 0 0 !important;
}

.swal2-confirm,
.swal2-cancel {
    border-radius: 8px !important;
    padding: 0.75rem 2rem !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.swal2-confirm {
    background-color: #3b82f6 !important;
}

.swal2-confirm:hover {
    background-color: #2563eb !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3) !important;
}

.swal2-cancel {
    background-color: #6b7280 !important;
}

.swal2-cancel:hover {
    background-color: #4b5563 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3) !important;
}

/* Close Button */
.swal2-close {
    color: #9ca3af !important;
    font-size: 2rem !important;
    transition: all 0.3s ease !important;
}

.swal2-close:hover {
    color: #1e293b !important;
    transform: rotate(90deg) !important;
}

/* Input Fields */
.swal2-input,
.swal2-textarea {
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    padding: 0.75rem 1rem !important;
    font-size: 1rem !important;
    transition: all 0.3s ease !important;
}

.swal2-input:focus,
.swal2-textarea:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
    outline: none !important;
}

/* Progress Steps */
.swal2-progress-steps {
    margin: 0 0 1.5rem !important;
}

.swal2-progress-step {
    background-color: #3b82f6 !important;
}

.swal2-progress-step.swal2-active-progress-step {
    background-color: #2563eb !important;
}

.swal2-progress-step-line {
    background-color: #d1d5db !important;
}

/* Validation Message */
.swal2-validation-message {
    background-color: #fee2e2 !important;
    color: #991b1b !important;
    border-radius: 8px !important;
    padding: 0.75rem 1rem !important;
    margin-top: 0.5rem !important;
}

/* Loading Spinner */
.swal2-loader {
    border-color: #3b82f6 transparent #3b82f6 transparent !important;
}

/* Timer Progress Bar */
.swal2-timer-progress-bar {
    background-color: #3b82f6 !important;
}

/* Backdrop */
.swal2-container.swal2-backdrop-show {
    background: rgba(0, 0, 0, 0.5) !important;
}

/* Toast Notifications */
.swal2-toast {
    border-radius: 12px !important;
    padding: 1rem 1.5rem !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.swal2-toast .swal2-title {
    font-size: 1rem !important;
    margin: 0 !important;
    padding: 0 !important;
}

.swal2-toast .swal2-icon {
    margin: 0 0.75rem 0 0 !important;
    width: 2rem !important;
    height: 2rem !important;
}

/* RTL Support */
[dir="rtl"] .swal2-popup {
    text-align: right !important;
}

[dir="rtl"] .swal2-actions {
    flex-direction: row-reverse !important;
}

[dir="rtl"] .swal2-close {
    right: auto !important;
    left: 0 !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .swal2-popup {
        width: 90% !important;
        padding: 1.5rem !important;
    }
    
    .swal2-title {
        font-size: 1.25rem !important;
    }
    
    .swal2-html-container {
        font-size: 0.9rem !important;
    }
    
    .swal2-confirm,
    .swal2-cancel {
        padding: 0.625rem 1.5rem !important;
        font-size: 0.9rem !important;
    }
}

/* Animation Enhancements */
.swal2-show {
    animation: swal2-show 0.3s ease-out !important;
}

.swal2-hide {
    animation: swal2-hide 0.2s ease-in !important;
}

@keyframes swal2-show {
    0% {
        transform: scale(0.7);
        opacity: 0;
    }
    45% {
        transform: scale(1.05);
        opacity: 1;
    }
    80% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes swal2-hide {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(0.5);
        opacity: 0;
    }
}
