    /* 
 * Universal Loading Screen
 * Используется на всех страницах для обеспечения плавной загрузки
 */

/* Экран загрузки */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f1419 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Контейнер загрузчика */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Логотипы */
.loading-logos {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    align-items: center;
}

.loading-logos img {
    height: 60px;
    opacity: 0.9;
    animation: logoFloat 2s ease-in-out infinite alternate;
}

.loading-logos img:nth-child(1) { animation-delay: 0s; }
.loading-logos img:nth-child(2) { animation-delay: 0.2s; }
.loading-logos img:nth-child(3) { animation-delay: 0.4s; }
.loading-logos img:nth-child(4) { animation-delay: 0.6s; }

@keyframes logoFloat {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-10px); }
}

/* Спиннер */
.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(65, 124, 255, 0.2);
    border-top: 4px solid #417CFF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Текст загрузки */
.loading-text {
    color: #ffffff;
    font-family: 'Manrope', sans-serif;
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 10px;
    animation: pulse 1.5s ease-in-out infinite;
}

.loading-subtext {
    color: #87CEEB;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 300;
    opacity: 0.8;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Прогресс бар (опционально) */
.loading-progress {
    width: 200px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin-top: 20px;
    overflow: hidden;
}

.loading-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #417CFF, #87CEEB);
    border-radius: 3px;
    animation: progressLoad 2s ease-in-out infinite;
}

@keyframes progressLoad {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* Мобильные устройства */
@media (max-width: 768px) {
    .loading-logos img {
        height: 45px;
    }
    
    .loading-text {
        font-size: 16px;
    }
    
    .loading-subtext {
        font-size: 12px;
    }
    
    .loading-spinner {
        width: 45px;
        height: 45px;
    }
}

/* Дополнительные эффекты для плавности */
body.loading {
    overflow: hidden;
}

body.loading * {
    pointer-events: none;
}
