/* Базовые стили классического сайдбара — подключать на каждой странице с навигацией */
:root {
    --sidebar-bg: #0f0f0f;
    --sidebar-accent: #e63939;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--sidebar-bg);
    height: 100%;
    overflow: hidden;
    display: flex;
    color: #ececf0;
}

.sidebar-nav-scroll {
    flex: 1;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.sidebar-nav-scroll::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.sidebar {
    width: 260px;
    background: var(--sidebar-bg);
    padding: 16px 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
    min-height: 0;
    flex-shrink: 0;
    position: relative;
    z-index: 5;
    overflow: hidden;
}

.sidebar-wrapper {
    background: #1a1a1a;
    margin: 12px 16px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
    padding: 10px 0 14px;
}

.logo {
    padding: 22px 22px 18px;
    text-align: center;
    flex-shrink: 0;
}

.logo img {
    width: 160px;
    height: auto;
    filter: brightness(1.1);
}

.nav-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 10px;
}

.nav-menu li {
    list-style: none;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    color: #888;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    border-radius: 12px;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
    border-left: 4px solid transparent;
}

.nav-item img {
    width: 22px;
    height: 22px;
    filter: brightness(0.8);
    transition: filter 0.25s ease;
    flex-shrink: 0;
}

.nav-item:hover {
    background: #252525;
    color: #fff;
}

.nav-item.active {
    background: #252525;
    color: #fff;
    border-left-color: var(--sidebar-accent);
    cursor: default;
    pointer-events: none;
}

.nav-item.active img {
    filter: brightness(1);
}

.nav-divider {
    height: 1px;
    background: #232323;
    margin: 10px 18px 11px;
    flex-shrink: 0;
}
