/* SIDEBAR */
.s_sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 240px;
    background: var(--c-bg-side);
    border-right: 1px solid var(--c-border);
    display: none;
    flex-direction: column;
    padding: 24px 16px;
}

.s_logo_wrap {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    padding: 0 8px;
}

.s_logo_icon {
    background: var(--c-accent-green);
    padding: 6px;
    border-radius: 8px;
    color: white;
    margin-right: 10px;
    display: flex;
}

.s_logo_text {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.s_nav_label {
    font-size: 11px;
    font-weight: 800;
    color: var(--c-text-muted);
    text-transform: uppercase;
    padding: 0 16px;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.s_nav_link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: 700;
    color: var(--c-text-muted);
    text-transform: uppercase;
    font-size: 13px;
    transition: all 0.2s ease;
    margin-bottom: 4px;
}

.s_nav_link .g_icon {
    margin-right: 12px;
}

.s_nav_link_active {
    color: var(--c-accent-blue);
    background: rgba(24, 101, 242, 0.1);
    box-shadow: inset 0 0 0 2px var(--c-accent-blue);

    background: rgba(28, 176, 246, 0.15);
    color: #fff;  /* белый текст вместо синего */
    border-color: #1cb0f6;
}

/* HEADER */
.h_header {
    position: fixed;
    top: 0;
    height: 64px;
    background: var(--c-bg-body);
    border-bottom: 1px solid var(--c-border);
    z-index: 40;
    /* Убрали width: 100% отсюда */
    left: 0;
    right: 0;
}

.h_inner {
    display: flex;
    justify-content: space-between;
    align-items:center;
    height: 100%;
    padding: 0 20px;
}


.h_left {
    display: flex;
    align-items: center;
}

.h_left>*:not(:last-child) {
    margin-right: 12px;
}

.h_stat_group {
    display: flex;
    align-items: center;
}

/* --- НОВЫЕ СТИЛИ ДЛЯ ХЕДЕРА --- */

/* Контейнер-таблетка для статистики */
.h_stats_pill {
    display: flex;
    align-items: center;
    background: #1F1F1F;
    /* Темный фон, чуть светлее body */
    border: 1px solid #333333;
    /* Тонкая рамка */
    border-radius: 20px;
    /* Полное скругление */
    padding: 4px 12px;
    /* Внутренние отступы */
    height: 40px;
    /* Фиксированная высота для аккуратности */
}

/* Элемент внутри таблетки */
.h_stat_item {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
}

.h_stat_item .g_icon {
    margin-right: 8px;
    /* Отступ иконки от цифры */
    font-size: 16px;
}

.h_streak_warning {
    position: absolute;
    top: -4px;
    right: -6px;
    display: inline-flex;
    animation: pulse_warning 1.5s ease-in-out infinite;
}

@keyframes pulse_warning {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.15); }
}

/* Вертикальная черта-разделитель */
.h_pill_divider {
    width: 1px;
    height: 16px;
    background: var(--c-border-hover);
    margin: 0 16px;
    /* Отступ между элементами и чертой */
}

/* Отдельная кнопка (колокольчик) */
.h_icon_btn {
    background: transparent;
    border: none;
    color: var(--c-text-muted);
    cursor: pointer;
    padding: 8px;
    margin-left: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: color 0.2s, background 0.2s;
}

.h_icon_btn:hover {
    color: var(--c-text-main);
    background: rgba(255, 255, 255, 0.1);
}

/* MAIN CONTENT */
.m_main {
    /* На мобилках занимает всё место */
    width: 100%;
    overflow: visible !important;
    height: auto !important;
}


.m_container_spaced {
    padding: 24px;
}

.m_title {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 24px;
}

.m_progress_header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 8px;
}

.m_progress_value {
    color: var(--c-accent-green);
    font-weight: 800;
    font-size: 14px;
}

/* BOTTOM NAV */
.b_nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 75px;
    background: var(--c-bg-body);
    z-index: 10;
    border-top: 1px solid var(--c-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.b_nav_item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--c-text-muted);
    flex: 1;
}

.b_nav_item .g_icon {
    margin-bottom: 4px;
}

.b_nav_item_active {
    color: var(--c-accent-blue);
}

.b_nav_item span {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.h_notif_badge {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 8px;
    height: 8px;
    background: var(--c-accent-red);
    border-radius: 50%;
    border: 2px solid var(--c-bg-body);
}


/* MEDIA QUERIES - ИСПРАВЛЕНИЕ ЦЕНТРОВКИ */
@media (min-width: 1024px) {
    .s_sidebar {
        display: flex;
    }

    .h_header {
        left: 240px;
        /* Начинается после сайдбара */
        right: 0;
        width: auto;
    }

    .m_main {
        margin-left: 240px;
        /* Отступ под сайдбар */
        width: calc(100% - 240px);
        /* Занимает только ОСТАТОК экрана */
        padding-top: 80px;
    }

    .b_nav {
        display: none;
    }

    .h_inner {
        padding: 0 40px;
    }

    .c_fab {
        bottom: 40px;
        right: 40px;
    }

}

@media (max-width: 1023px) {
    .m_main {
        padding-top: 60px;
        padding-bottom: 100px;
    }
}
.h_lang_name {
    display: none;
}

@media (min-width: 440px) {
    .h_lang_name {
        display: block;
    }
}

@media (min-width: 1024px) {
    .m_top_bar {
        left: 240px;
    }

}

