/* Основные стили */

.list-group-item.active {
    background-color: #0d6efd !important;
    /* Синий цвет Bootstrap */
    color: white !important;
    font-weight: bold;
    border-color: #0d6efd;
}

/* Анимация текста на главной странице */
.loader {
    color: #ffffff;
    font-size: 2rem;
    text-align: center;
}

.words {
    overflow: hidden;
    height: 50px;
}

.word {
    display: block;
    height: 100%;
    animation: spin_words 6s infinite;
}

@keyframes spin_words {
    10% {
        transform: translateY(-112%);
    }

    25% {
        transform: translateY(-100%);
    }

    35% {
        transform: translateY(-212%);
    }

    50% {
        transform: translateY(-200%);
    }

    60% {
        transform: translateY(-312%);
    }

    75% {
        transform: translateY(-300%);
    }

    85% {
        transform: translateY(-412%);
    }

    100% {
        transform: translateY(-400%);
    }
}

/* Стили карточек дизайна */
.card {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.card-detail {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.card-img {
    height: 70%;
    width: 70%;
    top: 2%;
    position: relative;
    left: 15%;
    object-fit: cover;
}

.card-img-top {
    height: 50%;
    width: 50%;
    object-fit: cover;
}

/* Рейтинг */
.rating-form input[type="range"] {
    background: linear-gradient(to right, #0d6efd 0%, #0d6efd 50%, #dee2e6 50%, #dee2e6 100%);
    height: 5px;
}

.rating-form input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    background: #0d6efd;
    border-radius: 50%;
    cursor: pointer;
}

/* Комментарии */
.comment {
    transition: background-color 0.2s ease;
}

.comment:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

/* Достижения */
.achievement-card {
    text-align: center;
    padding: 1.5rem;
}

.achievement-card img {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
}

/* Анимации для бейджей */
.badge {
    transition: all 0.3s ease;
}

.badge:hover {
    transform: scale(1.1);
}

/* Адаптивность */
@media (max-width: 768px) {
    .card-img-top {
        height: 150px;
    }

    .bg {
        padding: 4rem 0;
    }

    .loader {
        font-size: 1.5rem;
    }
}

/* Кастомные классы для уведомлений */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Стили для форм */
.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Кастомные стили для кнопок */
.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Стили для таблицы лидеров */
.leaderboard-table tr {
    transition: background-color 0.2s ease;
}

.leaderboard-table tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

/* Стили для профиля */
.profile-stats {
    background: rgba(13, 110, 253, 0.05);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.profile-stats .stat-item {
    text-align: center;
    padding: 1rem;
}

.profile-stats .stat-item i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #0d6efd;
}

/* Кастомные стили для дропдаунов */
.dropdown-item {
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: rgba(13, 110, 253, 0.1);
    transform: translateX(5px);
}

/* Стили для модальных окон */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}