/* Custom SweetAlert2 Styles */

/* Custom colors for different alert types */
.swal2-popup {
    font-family: 'Prompt', sans-serif;
    border-radius: 12px;
}

.swal2-title {
    font-weight: 600;
    color: var(--text-primary);
}

.swal2-content {
    color: var(--text-secondary);
}

/* Success alert styles */
.swal2-icon.swal2-success {
    border-color: var(--success-color);
}

.swal2-icon.swal2-success [class^='swal2-success-line'] {
    background-color: var(--success-color);
}

.swal2-icon.swal2-success .swal2-success-ring {
    border-color: var(--success-color);
}

/* Error alert styles */
.swal2-icon.swal2-error {
    border-color: var(--accent-color);
}

.swal2-icon.swal2-error [class^='swal2-x-mark-line'] {
    background-color: var(--accent-color);
}

/* Warning alert styles */
.swal2-icon.swal2-warning {
    border-color: var(--warning-color);
    color: var(--warning-color);
}

/* Custom button styles */
.swal2-confirm {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color)) !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    padding: 12px 24px !important;
    transition: all 0.3s ease !important;
}

.swal2-confirm:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3) !important;
}

.swal2-cancel {
    background: #95a5a6 !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    padding: 12px 24px !important;
    transition: all 0.3s ease !important;
}

.swal2-cancel:hover {
    background: #7f8c8d !important;
    transform: translateY(-2px) !important;
}

/* Timer progress bar styles */
.swal2-timer-progress-bar {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color)) !important;
}

/* Loading animation */
.swal2-loading {
    border-color: var(--secondary-color) !important;
    border-right-color: transparent !important;
}

/* Custom animations */
@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);
    }
}

.swal2-show {
    animation: swal2-show 0.3s ease-out;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .swal2-popup {
        background: rgba(44, 62, 80, 0.95);
        color: white;
    }
    
    .swal2-title {
        color: white;
    }
    
    .swal2-content {
        color: rgba(255, 255, 255, 0.8);
    }
    
    .swal2-html-container {
        color: rgba(255, 255, 255, 0.8);
    }
}

/* Responsive design */
@media (max-width: 576px) {
    .swal2-popup {
        margin: 10px;
        width: calc(100% - 20px) !important;
    }
    
    .swal2-title {
        font-size: 1.2rem;
    }
    
    .swal2-content {
        font-size: 0.9rem;
    }
    
    .swal2-confirm,
    .swal2-cancel {
        padding: 10px 20px !important;
        font-size: 0.9rem !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .swal2-popup {
        border: 2px solid #000;
    }
    
    .swal2-confirm {
        border: 2px solid #000 !important;
    }
    
    .swal2-cancel {
        border: 2px solid #000 !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .swal2-show {
        animation: none;
    }
    
    .swal2-confirm:hover,
    .swal2-cancel:hover {
        transform: none !important;
    }
}
