/**
 * EMS Genius Resort - SweetAlert2 Custom Styles
 * Custom styling to match the application's design system
 */

/* Custom SweetAlert popup styling */
.swal-popup-custom {
    border-radius: 12px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Custom title styling */
.swal-title-custom {
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    color: #2d3748 !important;
    margin-bottom: 1rem !important;
}

/* Custom content styling */
.swal-content-custom {
    font-size: 1rem !important;
    color: #4a5568 !important;
    line-height: 1.5 !important;
}

/* Success notification styling */
.swal2-success {
    border-color: #48bb78 !important;
}

.swal2-success .swal2-success-ring {
    border-color: #48bb78 !important;
}

.swal2-success .swal2-success-fix {
    background-color: #48bb78 !important;
}

/* Error notification styling */
.swal2-error {
    border-color: #f56565 !important;
}

.swal2-error .swal2-x-mark {
    border-color: #f56565 !important;
}

/* Warning notification styling */
.swal2-warning {
    border-color: #ed8936 !important;
}

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

/* Info notification styling */
.swal2-info {
    border-color: #4299e1 !important;
}

.swal2-info .swal2-icon.swal2-info {
    border-color: #4299e1 !important;
    color: #4299e1 !important;
}

/* Question/Confirm notification styling */
.swal2-question {
    border-color: #9f7aea !important;
}

.swal2-question .swal2-icon.swal2-question {
    border-color: #9f7aea !important;
    color: #9f7aea !important;
}

/* Button styling */
.swal2-confirm {
    background-color: #4299e1 !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
    padding: 0.75rem 1.5rem !important;
    transition: all 0.2s ease !important;
}

.swal2-confirm:hover {
    background-color: #3182ce !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.3) !important;
}

.swal2-cancel {
    background-color: #e2e8f0 !important;
    color: #4a5568 !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
    padding: 0.75rem 1.5rem !important;
    transition: all 0.2s ease !important;
}

.swal2-cancel:hover {
    background-color: #cbd5e0 !important;
    color: #2d3748 !important;
    transform: translateY(-1px) !important;
}

/* Destructive action button (delete, etc.) */
.swal2-confirm.swal2-danger {
    background-color: #f56565 !important;
}

.swal2-confirm.swal2-danger:hover {
    background-color: #e53e3e !important;
    box-shadow: 0 4px 12px rgba(245, 101, 101, 0.3) !important;
}

/* Toast notification styling */
.swal2-toast {
    border-radius: 10px !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.swal2-toast .swal2-title {
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    margin: 0 !important;
}

/* Toast icons */
.swal2-toast .swal2-icon {
    width: 20px !important;
    height: 20px !important;
    margin: 0 8px 0 0 !important;
}

/* Loading spinner styling */
.swal2-loading .swal2-loader {
    border-color: #4299e1 !important;
    border-top-color: transparent !important;
}

/* Progress bar styling */
.swal2-timer-progress-bar {
    background-color: rgba(66, 153, 225, 0.8) !important;
}

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

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

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

@keyframes swal2-show-custom {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes swal2-hide-custom {
    0% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    100% {
        opacity: 0;
        transform: scale(0.9) translateY(-10px);
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .swal2-popup {
        width: 90% !important;
        margin: 1rem !important;
    }
    
    .swal2-title {
        font-size: 1.25rem !important;
    }
    
    .swal2-content {
        font-size: 0.9rem !important;
    }
    
    .swal2-confirm,
    .swal2-cancel {
        padding: 0.625rem 1.25rem !important;
        font-size: 0.9rem !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .swal2-popup {
        background-color: #2d3748 !important;
        color: #e2e8f0 !important;
    }
    
    .swal-title-custom {
        color: #f7fafc !important;
    }
    
    .swal-content-custom {
        color: #cbd5e0 !important;
    }
    
    .swal2-cancel {
        background-color: #4a5568 !important;
        color: #e2e8f0 !important;
    }
    
    .swal2-cancel:hover {
        background-color: #2d3748 !important;
        color: #f7fafc !important;
    }
}
