.challenge-card {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}
.challenge-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.leaderboard-table {
    border-radius: 10px;
    overflow: hidden;
}
.leaderboard-table th {
    background-color: #343a40;
}
.btn-primary {
    background-color: #4a90e2;
    border-color: #4a90e2;
}
.btn-primary:hover {
    background-color: #3a7bc8;
    border-color: #3a7bc8;
}

/* Стили для статистики по сложности в таблице лидеров */
.stat-easy-tasks .stat-icon {
    color: #28a745;
}

.stat-medium-tasks .stat-icon {
    color: #17a2b8;
}

.stat-hard-tasks .stat-icon {
    color: #ffc107;
}

.stat-final-tasks .stat-icon {
    color: #dc3545;
}

/* Стили для таблицы лидеров - статистика по сложности внизу */
.solo-leaderboard-difficulty-stats {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.solo-leaderboard-difficulty-stats .difficulty-stats-header {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    color: #adb5bd;
    margin-bottom: 8px;
    font-weight: 500;
}

.difficulty-stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.difficulty-stats-row .stat-item {
    min-width: 50px;
    flex: 0 0 auto;
}

/* Компактная статистика для карточек участников */
.participant-stats-compact {
    margin-top: 12px;
    margin-bottom: 12px;
}

.stats-row {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    margin-bottom: 8px;
    gap: 4px;
}

.stats-row:last-child {
    margin-bottom: 0;
}

/* УПРОЩЕННАЯ СТРУКТУРА для participant-stat БЕЗ ИКОНОК */
.participant-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 4px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    flex: 1;
    transition: all 0.3s ease;
    min-height: 50px;
    text-align: center;
}

.participant-stat:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.participant-stat .stat-value {
    font-size: 1.3rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 4px;
    line-height: 1;
}

.participant-stat .stat-label {
    font-size: 0.75rem;
    color: #adb5bd;
    line-height: 1.1;
}

/* Компактная статистика по сложности - оставляем иконки */
.difficulty-row {
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.difficulty-stat-compact {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4px 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    flex: 1;
    margin: 0 1px;
    position: relative;
    transition: all 0.3s ease;
    min-height: 40px;
    text-align: center;
}

.difficulty-stat-compact:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.difficulty-stat-compact i {
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.difficulty-stat-compact span {
    font-size: 0.85rem;
    font-weight: bold;
    color: #fff;
}

.difficulty-achievement-compact {
    position: absolute;
    top: -3px;
    right: -3px;
    background: #ffc107;
    border-radius: 50%;
    width: 12px;
    height: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.5rem;
    color: #000;
}

/* Цвета для разных уровней сложности */
.difficulty-easy i {
    color: #28a745;
}

.difficulty-medium i {
    color: #17a2b8;
}

.difficulty-hard i {
    color: #ffc107;
}

.difficulty-final i {
    color: #dc3545;
}

.difficulty-easy:hover {
    border-color: #28a745;
    box-shadow: 0 0 6px rgba(40, 167, 69, 0.3);
}

.difficulty-medium:hover {
    border-color: #17a2b8;
    box-shadow: 0 0 6px rgba(23, 162, 184, 0.3);
}

.difficulty-hard:hover {
    border-color: #ffc107;
    box-shadow: 0 0 6px rgba(255, 193, 7, 0.3);
}

.difficulty-final:hover {
    border-color: #dc3545;
    box-shadow: 0 0 6px rgba(220, 53, 69, 0.3);
}

/* Цвета для основной статистики - теперь только для hover эффектов */
.stat-success:hover {
    border-color: #28a745;
    box-shadow: 0 0 6px rgba(40, 167, 69, 0.3);
}

.stat-danger:hover {
    border-color: #dc3545;
    box-shadow: 0 0 6px rgba(220, 53, 69, 0.3);
}

.stat-warning:hover {
    border-color: #ffc107;
    box-shadow: 0 0 6px rgba(255, 193, 7, 0.3);
}

/* Отступ для кнопок действий */
.participant-actions {
    margin-top: 12px;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .difficulty-stats-row {
        justify-content: center;
        gap: 6px;
    }
    
    .difficulty-stats-row .stat-item {
        min-width: 45px;
    }
    
    .participant-stat {
        min-height: 45px;
        padding: 8px 4px;
    }
    
    .participant-stat .stat-value {
        font-size: 1.2rem;
    }
    
    .participant-stat .stat-label {
        font-size: 0.7rem;
    }
    
    .difficulty-stat-compact {
        padding: 3px 4px;
        min-height: 35px;
    }
    
    .difficulty-stat-compact i {
        font-size: 0.8rem;
    }
    
    .difficulty-stat-compact span {
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {
    .stats-row {
        gap: 2px;
    }
    
    .participant-stat {
        padding: 8px 2px;
        min-height: 40px;
    }
    
    .participant-stat .stat-value {
        font-size: 1.1rem;
    }
    
    .participant-stat .stat-label {
        font-size: 0.65rem;
    }
    
    .difficulty-stat-compact {
        margin: 0;
        padding: 2px 3px;
        min-height: 30px;
    }
    
    .difficulty-achievement-compact {
        width: 10px;
        height: 10px;
        font-size: 0.4rem;
        top: -2px;
        right: -2px;
    }
}

/* Дополнительные стили для таблицы лидеров */
.solo-leaderboard-info {
    width: 100%;
}

@media (max-width: 768px) {
    .solo-leaderboard-stats {
        justify-content: center;
        margin-top: 12px;
    }
    
    .solo-leaderboard-stats .stat-item {
        min-width: 50px;
    }
    
    .solo-leaderboard-difficulty-stats {
        margin-top: 8px;
        padding-top: 8px;
    }
}