/* Базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'SF Pro Display', 'SF Pro Text', system-ui, sans-serif !important;
    background-color: var(--tg-theme-bg-color, #ffffff);
    color: var(--tg-theme-text-color, #000000);
    height: 100vh;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.school-name {
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    padding: 16px;
    background-color: var(--tg-theme-secondary-bg-color, #f8f9fa);
    color: var(--tg-theme-text-color, #000000);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'SF Pro Display', system-ui, sans-serif !important;
    letter-spacing: -0.3px;
    line-height: 1.2;
}

/* Стили для страницы рейтинга */
.rating-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    background-color: var(--tg-theme-bg-color, #ffffff);
}

.rating-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
    min-height: 0;
}

.rating-scale-wrapper {
    flex: 1;
    display: flex;
    align-items: stretch;
    min-height: 0;
    gap: 20px;
}

/* Шкала */
.rating-scale {
    width: 60px;
    position: relative;
    background: linear-gradient(
        to top,
        #a8d5a8 0%,      /* Мягкий зеленый внизу */
        #b3d9b3 15%,     /* Светло-зеленый */
        #beddbe 30%,     /* Пастельно-зеленый */
        #c9e1c9 45%,     /* Очень светлый зеленый */
        #d4e5d4 60%,     /* Переходный тон */
        #dfe9df 75%,     /* Нейтральный пастель */
        #b8d4e3 85%,     /* Мягкий голубой */
        #a3c9de 95%,     /* Пастельно-голубой */
        #8fbdd3 100%     /* Голубой наверху */
    );
    border-radius: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

/* Индикатор текущей позиции */
.position-indicator {
    position: absolute;
    left: -18px;
    width: 0;
    height: 0;
    border-left: 18px solid #4a90e2;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    z-index: 10;
    transition: bottom 0.8s ease-in-out;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Контейнер для меток и призов */
.rating-items-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 0;
}

/* Общий класс для строк (метки + призы) */
.rating-row {
    display: flex;
    align-items: center;
    position: relative;
    min-height: 40px;
}

/* Метка с баллами */
.rating-mark {
    width: 60px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    color: #000000 !important; /* Черный цвет для темной темы */
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(200, 200, 200, 0.3);
    border-radius: 8px;
    padding: 4px 8px;
    margin-right: 15px;
    flex-shrink: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'SF Pro Display', system-ui, sans-serif !important;
    letter-spacing: -0.1px;
}

/* Приз */
.rating-prize {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.85);
    border: 2px solid rgba(200, 200, 200, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.rating-prize.achieved {
    background-color: rgba(168, 213, 168, 0.3);
    border-color: #a8d5a8;
    box-shadow: 0 2px 8px rgba(168, 213, 168, 0.2);
}

.rating-prize.current {
    background-color: rgba(74, 144, 226, 0.15);
    border-color: #4a90e2;
    box-shadow: 0 2px 12px rgba(74, 144, 226, 0.3);
}

.prize-icon {
    font-size: 20px;
    margin-right: 12px;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}

.prize-text {
    font-size: 16px;
    font-weight: 500;
    color: var(--tg-theme-text-color, #000000);
    line-height: 1.3;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'SF Pro Display', system-ui, sans-serif !important;
    letter-spacing: -0.2px;
}

/* Адаптивность */
@media (max-width: 480px) {
    .rating-content {
        padding: 15px;
    }
    
    .rating-scale-wrapper {
        gap: 15px;
    }
    
    .rating-scale {
        width: 40px;
        border-radius: 20px;
    }
    
    .position-indicator {
        left: -12px;
        border-left: 12px solid #4a90e2;
        border-top: 8px solid transparent;
        border-bottom: 8px solid transparent;
    }
    
    .rating-mark {
        width: 50px;
        font-size: 12px;
        padding: 3px 6px;
        margin-right: 10px;
    }
    
    .rating-prize {
        padding: 8px 12px;
    }
    
    .prize-icon {
        font-size: 18px;
        margin-right: 8px;
        width: 20px;
    }
    
    .prize-text {
        font-size: 14px;
    }
    
    .rating-row {
        min-height: 35px;
    }
}

@media (max-width: 360px) {
    .rating-scale {
        width: 35px;
    }
    
    .position-indicator {
        left: -10px;
        border-left: 10px solid #4a90e2;
        border-top: 6px solid transparent;
        border-bottom: 6px solid transparent;
    }
    
    .rating-mark {
        width: 45px;
        font-size: 11px;
        padding: 2px 4px;
        margin-right: 8px;
    }
    
    .prize-text {
        font-size: 13px;
    }
    
    .prize-icon {
        font-size: 16px;
        margin-right: 6px;
        width: 18px;
    }
    
    .rating-row {
        min-height: 32px;
    }
} 