﻿.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000000;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.spinner {
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid #3498db;
    border-right: 3px solid #e74c3c;
    border-bottom: 3px solid #f1c40f;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    animation: smoothSpin 1.2s cubic-bezier(0.65, 0.05, 0.36, 1) infinite;
    margin: auto;
    margin-top: 10px;
    box-shadow: 0 0 25px rgba(52, 152, 219, 0.4);
    position: relative;
}

    .spinner::before {
        content: '';
        position: absolute;
        top: -8px;
        left: -8px;
        right: -8px;
        bottom: -8px;
        border: 2px solid transparent;
        border-top: 2px solid #9b59b6;
        border-radius: 50%;
        animation: smoothSpin 1.8s cubic-bezier(0.65, 0.05, 0.36, 1) infinite reverse;
        opacity: 0.7;
    }

    .spinner::after {
        content: '';
        position: absolute;
        top: -15px;
        left: -15px;
        right: -15px;
        bottom: -15px;
        border: 1px solid transparent;
        border-top: 1px solid #2ecc71;
        border-radius: 50%;
        animation: smoothSpin 2.4s cubic-bezier(0.65, 0.05, 0.36, 1) infinite;
        opacity: 0.5;
    }

.font-Style {
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 25px;
    animation: gentlePulse 2s ease-in-out infinite;
    letter-spacing: 0.5px;
}

.box {
    background: rgba(255, 255, 255, 0.95);
    width: 380px;
    height: 150px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 0 20px rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.8);
    animation: subtleFloat 4s ease-in-out infinite;
}

@keyframes smoothSpin {
    0% {
        transform: rotate(0deg) scale(1);
        border-top-color: #3498db;
        border-right-color: #e74c3c;
    }

    25% {
        border-top-color: #e74c3c;
        border-right-color: #f1c40f;
    }

    50% {
        transform: rotate(180deg) scale(1.05);
        border-top-color: #f1c40f;
        border-right-color: #2ecc71;
    }

    75% {
        border-top-color: #2ecc71;
        border-right-color: #9b59b6;
    }

    100% {
        transform: rotate(360deg) scale(1);
        border-top-color: #3498db;
        border-right-color: #e74c3c;
    }
}

@keyframes gentlePulse {
    0%, 100% {
        opacity: 0.8;
        transform: translateY(0);
    }

    50% {
        opacity: 1;
        transform: translateY(-2px);
    }
}

@keyframes subtleFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-5px) scale(1.02);
    }
}

.dots {
    display: inline-block;
    animation: dotsBounce 1.5s infinite;
}

    .dots::after {
        content: '';
        animation: dotsStep 1.5s infinite;
    }

@keyframes dotsBounce {
    0%, 20% {
        transform: translateY(0);
    }

    10% {
        transform: translateY(-3px);
    }
}

@keyframes dotsStep {
    0% {
        content: '';
    }

    33% {
        content: '.';
    }

    66% {
        content: '..';
    }

    100% {
        content: '...';
    }
}

/* Responsive */
@media (max-width: 768px) {
    .box {
        width: 300px;
        height: 130px;
        padding: 20px;
    }

    .font-Style {
        font-size: 1.1rem;
    }

    .spinner {
        width: 50px;
        height: 50px;
    }
}
