.app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    height: 46px;
    background: var(--panel);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
}

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

.header__burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 36px;
    height: 36px;
    margin-right: 6px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    background: rgba(255,255,255,0.02);
    cursor: pointer;
    padding: 0;
}

.header__burger:hover {
    border-color: rgba(255,255,255,0.14);
}

.header__burger-icon {
    font-size: 18px;
    line-height: 1;
    color: rgba(255,255,255,0.80);
}

.header__logo {
    font-weight: 700;
}

.header__tag {
    margin-left: 8px;
    font-size: 12px;
    color: var(--muted);
}

.header__right {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 13px;
}

.header__link {
    color: var(--muted);
}

.header__link:hover {
    color: var(--text);
}

.app__body {
    flex: 1;
    display: flex;
    min-height: 0;
}

.app__overlay {
    display: none;
    position: fixed;
    inset: 46px 0 0 0;
    background: rgba(0,0,0,0.45);
    z-index: 1100;
}

/*
  Адаптивная компоновка:
  - sidebar становится выезжающим drawer-меню
  - контент занимает всю ширину
  - overlay закрывает меню при клике
*/
.sidebar {
    position: fixed;
    top: 46px;
    left: -320px;
    height: calc(100vh - 46px);
    z-index: 1200;

    width: 280px;
    background: var(--panel);
    border-right: 1px solid var(--border);
    overflow: auto;

    box-shadow: 0 12px 28px rgba(0,0,0,0.55);
    transition: left 160ms ease;
}

.sidebar__title {
    padding: 12px;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.sidebar__list {
    list-style: none;
    margin: 0;
    padding: 0 8px 12px;
}

.sidebar__item {
    margin-bottom: 6px;
}

.sidebar__link {
    display: block;
    padding: 10px 10px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: rgba(255,255,255,0.02);
}

.sidebar__link:hover {
    border-color: rgba(255,255,255,0.08);
}

.sidebar__link.is-active {
    border-color: rgba(43,108,176,0.6);
}

.sidebar__link-title {
    display: block;
    font-size: 14px;
}

.sidebar__link-desc {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: var(--muted);
}

/*
  Открытие sidebar + overlay
*/
.app.is-sidebar-open .sidebar {
    left: 0;
}

.app.is-sidebar-open .app__overlay {
    display: block;
}

.app__content {
    flex: 1;
    min-width: 0;
    min-height: 0;
    background: var(--panel-2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.footer {
    height: 36px;
    background: var(--panel);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 12px;
}

.footer__text {
    font-size: 12px;
    color: var(--muted);
}
