/* static/main/css/index.css */
:root {
    --primary: #6A11CB;
    --secondary: #2575FC;
    --accent: #FF4E50;
    --dark: #0F0C29;
    --light: #f8f9fa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, var(--dark), #24243e);
    color: white;
    font-family: 'Montserrat', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.index-container {
    width: 100%;
    max-width: 500px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-container {
    width: 200px;
    height: 200px;
    margin: 0 auto 30px;
    position: relative;
}

.logo-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 30px rgba(106, 17, 203, 0.7);
}

/* Система загрузки */
.loader-system {
    width: 90%;
    max-width: 400px;
    margin-top: 40px;
}

.loader-bar-container {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.loader-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 4px;
    transition: width 0.7s ease-out;
}

.loader-text {
    font-size: 18px;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.9);
    width: 100%;
    text-align: center;
    min-height: 27px;
    transition: opacity 0.3s;
}

/* Анимации */
.telegram-loader .loader-bar {
    animation: load-complete 1.8s ease-out forwards;
}

/* Убрана анимация load-loop, так как теперь управляем прогрессом через JS */
.web-loader .loader-bar {
    transition: width 0.7s ease-out;
}

@keyframes load-complete {
    0% { width: 0%; }
    100% { width: 100%; }
}

@media (max-width: 480px) {
    .logo-container {
        width: 160px;
        height: 160px;
    }
    
    .loader-text {
        font-size: 16px;
    }
}