/* SweetAlert Custom Styles */
/* Custom SweetAlert styles, enhance animation effects */

/* Success toast styles */
.swal2-toast-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: white !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3) !important;
    border: none !important;
    font-weight: 500 !important;
}

.swal2-toast-success .swal2-title {
    color: white !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
}

.swal2-toast-success .swal2-html-container {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.875rem !important;
}

.swal2-toast-success .swal2-icon {
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.swal2-toast-success .swal2-icon .swal2-icon-content {
    color: white !important;
}

/* Error toast styles */
.swal2-popup.swal2-modal {
    border-radius: 16px !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

.swal2-popup.swal2-modal .swal2-title {
    font-weight: 600 !important;
    color: #1f2937 !important;
}

.swal2-popup.swal2-modal .swal2-html-container {
    color: #6b7280 !important;
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
}

/* Warning toast styles */
.swal2-popup.swal2-modal .swal2-icon.swal2-warning {
    border-color: #f59e0b !important;
}

.swal2-popup.swal2-modal .swal2-icon.swal2-warning .swal2-icon-content {
    color: #f59e0b !important;
}

/* Delete confirmation styles */
.swal2-popup.swal2-modal .swal2-icon.swal2-warning {
    border-color: #dc2626 !important;
}

.swal2-popup.swal2-modal .swal2-icon.swal2-warning .swal2-icon-content {
    color: #dc2626 !important;
}

/* Button styles */
.swal2-popup.swal2-modal .swal2-confirm {
    border-radius: 8px !important;
    font-weight: 500 !important;
    padding: 12px 24px !important;
    transition: all 0.2s ease !important;
}

.swal2-popup.swal2-modal .swal2-cancel {
    border-radius: 8px !important;
    font-weight: 500 !important;
    padding: 12px 24px !important;
    transition: all 0.2s ease !important;
}

/* Animation effects */
@keyframes slideInFromTop {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideOutToTop {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(-100px);
        opacity: 0;
    }
}

/* Toast animation */
.swal2-toast.swal2-show {
    animation: slideInFromTop 0.3s ease-out !important;
}

.swal2-toast.swal2-hide {
    animation: slideOutToTop 0.3s ease-in !important;
}

/* Modal animation */
.swal2-modal.swal2-show {
    animation: fadeInDown 0.3s ease-out !important;
}

.swal2-modal.swal2-hide {
    animation: fadeOutUp 0.3s ease-in !important;
}

/* Responsive design */
@media (max-width: 640px) {
    .swal2-toast {
        width: calc(100vw - 32px) !important;
        max-width: 400px !important;
        margin: 0 16px !important;
    }
    
    .swal2-popup.swal2-modal {
        width: calc(100vw - 32px) !important;
        margin: 0 16px !important;
    }
    
    .swal2-popup.swal2-modal .swal2-title {
        font-size: 1.25rem !important;
    }
    
    .swal2-popup.swal2-modal .swal2-html-container {
        font-size: 0.875rem !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .swal2-popup.swal2-modal {
        background-color: #1f2937 !important;
        color: #f9fafb !important;
    }
    
    .swal2-popup.swal2-modal .swal2-title {
        color: #f9fafb !important;
    }
    
    .swal2-popup.swal2-modal .swal2-html-container {
        color: #d1d5db !important;
    }
}
