﻿:root {
    --sweetalert-primary-blue: #0056b3;
    --sweetalert-gradient-start: #003366;
    --sweetalert-gradient-mid: #1a3d6d;
    --sweetalert-gradient-end: #005b96;
    --sweetalert-light-bg: #f8f9fa;
    --sweetalert-success: #28a745;
    --sweetalert-warning: #ffc107;
    --sweetalert-error: #dc3545;
    --sweetalert-info: #17a2b8;
}

/* Enhanced spinner styles */
.sweetalert-spinner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

.sweetalert-spinner {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.sweetalert-spinner-inner {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid transparent;
    border-top: 4px solid var(--sweetalert-primary-blue);
    border-radius: 50%;
    animation: sweetalert-spin 1.5s linear infinite;
}

    .sweetalert-spinner-inner::before,
    .sweetalert-spinner-inner::after {
        content: '';
        position: absolute;
        border-radius: 50%;
        border: 4px solid transparent;
    }

    .sweetalert-spinner-inner::before {
        top: 5px;
        left: 5px;
        right: 5px;
        bottom: 5px;
        border-top: 4px solid var(--sweetalert-gradient-mid);
        animation: sweetalert-spin 2s linear infinite;
    }

    .sweetalert-spinner-inner::after {
        top: 15px;
        left: 15px;
        right: 15px;
        bottom: 15px;
        border-top: 4px solid var(--sweetalert-gradient-end);
        animation: sweetalert-spin 1s linear infinite;
    }

@keyframes sweetalert-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.sweetalert-progress-text {
    font-size: 22px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--sweetalert-gradient-start), var(--sweetalert-gradient-mid), var(--sweetalert-gradient-end));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 10px;
}

.sweetalert-processing-text {
    color: var(--sweetalert-primary-blue);
    font-size: 16px;
    margin-bottom: 15px;
}

.sweetalert-progress-bar-container {
    width: 100%;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin: 15px 0;
}

.sweetalert-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, var(--sweetalert-gradient-start), var(--sweetalert-gradient-end));
    border-radius: 4px;
    transition: width 0.4s ease;
}

.sweetalert-dots-animation {
    display: inline-block;
}

    .sweetalert-dots-animation::after {
        content: '';
        animation: sweetalert-dots 1.5s steps(5, end) infinite;
    }

@keyframes sweetalert-dots {
    0%, 20% {
        content: '.';
    }

    40% {
        content: '..';
    }

    60%, 100% {
        content: '...';
    }
}

/* Enhanced header gradient for all alerts */
.sweetalert-header-gradient {
    background: linear-gradient(135deg, var(--sweetalert-gradient-start), var(--sweetalert-gradient-mid), var(--sweetalert-gradient-end));
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    text-transform: uppercase;
    border-bottom: 2px solid var(--sweetalert-primary-blue);
    text-align: center;
    padding: 15px;
    border-radius: 8px 8px 0 0;
    margin: -20px -20px 20px -20px;
}

/* Custom button styles */
.swal2-confirm {
    background: linear-gradient(135deg, var(--sweetalert-gradient-start), var(--sweetalert-gradient-end)) !important;
    border: none !important;
    border-radius: 30px !important;
    padding: 10px 25px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.2) !important;
    transition: all 0.3s ease !important;
}

    .swal2-confirm:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 6px 20px rgba(0, 86, 179, 0.3) !important;
    }

.swal2-cancel {
    background: linear-gradient(135deg, #6c757d, #495057) !important;
    border: none !important;
    border-radius: 30px !important;
    padding: 10px 25px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.2) !important;
    transition: all 0.3s ease !important;
}

    .swal2-cancel:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 6px 20px rgba(108, 117, 125, 0.3) !important;
    }

/* Custom modal styling */
.swal2-popup {
    border-radius: 12px !important;
    padding: 0 0 2rem 0 !important;
    overflow: hidden !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.swal2-title {
    padding: 1.5em 1em 0 !important;
    color: #333 !important;
}

.swal2-html-container {
    padding: 1em 2em !important;
    color: #555 !important;
    font-size: 16px !important;
}

.swal2-actions {
    margin: 1.5em auto 0 !important;
}
