.hidden {
    display: none;
}


/* Основной блок профиля */
.user-profile {
    max-width: 900px;
    margin: 20px auto;
    background: #f8f8f8;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Шапка профиля */
/* Основной блок профиля */
.user-header {
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 2px solid #ddd;
    padding-bottom: 15px;
}

/* Контейнер для имени, статуса и кнопки */
.user-top {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Никнейм */
.user-info h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 22px;
    color: #333;
}

/* Флаг страны */
.user-flag {
    width: 24px;
    height: 16px;
    border-radius: 2px;
}

/* Статус пользователя */
.user-status {
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Разные статусы */
.online {
    color: #28a745;
}

.offline {
    color: #dc3545;
}

/* Иконка статуса */
.user-status i {
    font-size: 10px;
}

/* Кнопка отправки сообщения */
.message-button {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #F4860B;
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.message-button:hover {
    background: #d97307;
}

/* Аватар */
.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #F4860B;
}

/* Информация пользователя */
.user-info h2 {
    display: flex;
    align-items: center;
    gap: 8px; /* Отступ между флагом и именем */
    margin: 0;
    font-size: 22px;
    color: #333;
}

/* Флаг страны */
.user-flag {
    width: 24px;
    height: 24px;
    border-radius: 2px;
}

.user-country img {
    width: 20px;
    margin-right: 5px;
}

.user-stats {
    display: flex;
    margin-top: 4px;
    gap: 15px;
    font-size: 14px;
    color: #555;
}

/* Даты регистрации и последней авторизации */
.user-dates {
    display: flex;
    flex-direction: column;
    margin-top: 10px;
    font-size: 14px;
    color: #777;
}

.user-dates span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-dates i {
    color: #F4860B;
}

.green {
    color: #0F5B34; /* Зеленый цвет (Bootstrap Green) */
    font-weight: bold;
}


/* Атрибуты пользователя (звезды) */
/* Блок характеристик */
.user-attributes {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Заголовок "Рейтинг менеджера" */
.attributes-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    text-transform: uppercase;
    margin-bottom: 5px;
}

/* Цифра рейтинга */
.rating-number {
    font-size: 28px;
    font-weight: bold;
    color: #F4860B;
    margin-bottom: 15px;
}

/* Блок всех характеристик (в одну строку) */
.attributes-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 600px;
}

/* Каждая характеристика */
.attribute {
    flex: 1;
    text-align: center;
}

/* Заголовок характеристики */
.attribute span {
    display: block;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 3px;
}

/* Текст с числом */
.progress-value {
    font-size: 12px;
    font-weight: bold;
    color: #555;
    margin-bottom: 2px;
}

/* Шкала прогресса */
.progress-bar {
    width: 100px;
    height: 12px;
    background: #ddd;
    border-radius: 6px;
    overflow: hidden;
    margin: 0 auto;
}

/* Индикатор прогресса */
.progress {
    height: 100%;
    background: #F4860B;
    border-radius: 6px;
    transition: width 0.3s ease;
}

/* Звезды */
.stars {
    font-size: 18px;
    color: gold;
}

/* Основной блок истории назначений */
.user-history {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.user-history h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 15px;
}

/* Карточки команд */
.history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8f8f8;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
    min-height: 90px;
    transition: background 0.3s;
}

.history-item:hover {
    background: #ececec;
}

/* Логотип команды */
.team-logo {
    width: 50px;
    height: 50px;
    margin-right: 15px;
}

.history-info {
    flex-grow: 1; /* Занимает всё доступное пространство */
    margin-right: 10px; /* Небольшой отступ перед статистикой */
}

/* Информация о менеджере */
.history-info h4 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.history-info p {
    margin: 3px 0;
    font-size: 14px;
    color: #555;
}

/* Статистика */
/* Фиксируем ширину для статистики */
.history-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 14px;
    color: #777;
    width: 150px; /* Фиксированная ширина для правого блока */
}

.history-stats span {
    margin-bottom: 5px;
}


/* Контейнер заголовков */
.user-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 900px;
    margin: 0 auto 10px;
}

/* Заголовок слева */
.user-history-header h3 {
    font-size: 18px;
    color: #333;
    padding-bottom: 5px;
    margin: 0;
}

/* Заголовок справа */
.manager-positions {
    text-align: right;
    font-size: 18px;
    color: #333;
    padding-bottom: 5px;
    margin: 0;
}



/* Награды */
.user-trophies {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.trophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    max-width: 100%;
    grid-template-columns: repeat(6, 1fr); /* Максимум 6 в ряд */
    gap: 10px;
    text-align: center;
    margin-top: 10px;
}

/* Карточка награды */
.trophy {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f8f8f8;
    padding: 8px;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.trophy:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Изображение награды */
.trophy img {
    width: 70px;
    height: 70px;
}

/* Название награды */
.trophy-title {
    font-size: 12px;
    font-weight: bold;
    margin-top: 5px;
    color: #333;
}

/* Название команды */
.trophy-team {
    font-size: 11px;
    color: #777;
    font-style: italic;
    margin-top: 3px;
}

/*  Адаптация для мобильных (по 3 в ряд) */
@media (max-width: 1000px) and (orientation: portrait) {
    .trophy-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1000px) and (orientation: landscape) {
    .trophy-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}



/*  Адаптация для мобильных */
/*
@media (max-width: 600px) {
    .user-header {
        flex-direction: column;
        text-align: center;
    }

    .user-avatar {
        width: 70px;
        height: 70px;
    }

    .user-stats {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }

    .user-attributes {
        flex-direction: column;
        align-items: center;
    }

    .history-item {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }

    .team-logo {
        margin: 0 0 10px 0;
    }

    .history-info, .history-stats {
        align-items: center;
    }

    .attributes-row {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .attribute {
        width: 45%;
    }
}
*/