/* ========== БОКОВОЕ МЕНЮ ========== */

/* Хедер */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: var(--surface);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 12px;
    z-index: 100;
}

/* Кнопка бургера */
.h-burger {
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    border-radius: 8px;
    flex-shrink: 0;
}

.h-burger:hover {
    background: var(--surface-hover);
}

.h-burger__line {
    width: 18px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.h-burger_state_close .h-burger__line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.h-burger_state_close .h-burger__line:nth-child(2) {
    opacity: 0;
}
.h-burger_state_close .h-burger__line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Логотип */
.header-logo {
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--logo-gradient-1), var(--logo-gradient-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    flex-shrink: 0;
}

/* Хлебные крошки */
.breadcrumb-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.breadcrumb-current {
    font-weight: 600;
    color: var(--text);
    background: var(--surface-hover);
    padding: 4px 12px;
    border-radius: 20px;
}

/* ========== ЛЕВОЕ МЕНЮ ========== */
.bha-left-menu {
    position: fixed;
    top: 56px;
    left: 0;
    bottom: 0;
    width: 56px;
    background: var(--surface);
    border-right: 1px solid var(--border-light);
    overflow-x: hidden;
    overflow-y: auto;
    transition: width 0.25s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    z-index: 90;
}

.bha-left-menu_expanded {
    width: 220px;
}

/* Контентная область */
.content-area {
    margin-left: 56px;
    transition: margin-left 0.25s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    padding: 80px 24px 24px 24px;
    background: var(--bg);
    min-height: 100vh;
}

.content-area_expanded {
    margin-left: 220px;
}

/* Пункты меню */
.left-menu-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    margin: 2px 8px;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s ease;
    white-space: nowrap;
    gap: 12px;
}

.left-menu-item:hover {
    background: var(--surface-hover);
}

.left-menu-item_style_active {
    background: var(--success-bg);
    color: var(--success-text);
}

.left-menu-item_style_active .left-menu-item__icon {
    stroke: var(--success-text);
}

.left-menu-item__icon-slot {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.left-menu-item__icon {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: var(--text-secondary);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.left-menu-item__text {
    font-size: 13px;
    font-weight: 500;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s 0.05s, visibility 0.2s;
}

.bha-left-menu_expanded .left-menu-item__text {
    opacity: 1;
    visibility: visible;
}

/* Мобильная версия */
@media (max-width: 768px) {
    .bha-left-menu {
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        width: 220px !important;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
    }
    
    .bha-left-menu_mobile-open {
        transform: translateX(0);
    }
    
    .content-area,
    .content-area_expanded {
        margin-left: 0 !important;
        padding: 72px 16px 16px 16px;
    }
    
    .overlay {
        display: none;
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 85;
    }
    
    .overlay_active {
        display: block;
    }
}

/* Скролл */
.bha-left-menu::-webkit-scrollbar {
    width: 3px;
}
.bha-left-menu::-webkit-scrollbar-track {
    background: var(--border-light);
}
.bha-left-menu::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 3px;
}