/* ── Sidebar container ─────────────────────────────── */
#sidebar {
    background-color: #ffffff;
    border-right: 1px solid var(--tm-surface-mid);
    padding: 0;
    margin-top: var(--tm-navbar-height);
    height: calc(100vh - var(--tm-navbar-height)) !important;
    overflow-y: auto !important;
    overflow-x: hidden;
    box-shadow: 2px 0 8px rgba(0, 0, 0, .04);
}

/* ── Nav wrapper ───────────────────────────────────── */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 8px 12px 32px;
}

/* ── Section labels ────────────────────────────────── */
.sidebar-section-label {
    padding: 20px 10px 4px;
    text-transform: uppercase;
    font-weight: 700;
    font-size: .65rem;
    color: #bbb;
    letter-spacing: .08em;
    line-height: 1.4;
}

.sidebar-section-label:first-child {
    padding-top: 8px;
}

/* ── Nav items ─────────────────────────────────────── */
.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 38px;
    padding: 0 10px;
    border-radius: var(--tm-radius-md);
    margin: 1px 0;
    font-size: .875rem;
    color: #44403c;           /* stone-700 */
    text-decoration: none;
    transition: background-color .12s, color .12s;
    white-space: nowrap;
    overflow: hidden;
}

.sidebar-nav-item:hover {
    background-color: var(--tm-surface-light);
    color: var(--tm-primary-dark);
    text-decoration: none;
}

.sidebar-nav-item.active {
    background-color: var(--tm-surface-light);
    color: var(--tm-primary-dark);
    font-weight: 600;
}

/* ── Icons ─────────────────────────────────────────── */
.sidebar-nav-icon {
    width: 18px;
    text-align: center;
    color: var(--tm-primary);
    font-size: .875rem;
    flex-shrink: 0;
}

.sidebar-nav-item:hover .sidebar-nav-icon,
.sidebar-nav-item.active .sidebar-nav-icon {
    color: var(--tm-primary-dark);
}

/* ── Version label ─────────────────────────────────── */
.sidebar-version {
    margin-top: 16px;
    padding: 4px 10px;
    font-size: .7rem;
    color: #ccc;
    letter-spacing: .02em;
}

/* ── App logo block (optional) ─────────────────────── */
.sidebar-app-header {
    display: flex;
    align-items: center;
    gap: var(--tm-space-sm);
    padding: var(--tm-space-md) var(--tm-space-sm);
    border-bottom: 1px solid var(--tm-surface-mid);
}

.sidebar-app-title {
    font-weight: 700;
    font-size: .85rem;
    color: var(--tm-primary-dark);
    letter-spacing: -.01em;
    line-height: 1.2;
}

.sidebar-app-subtitle {
    font-size: .68rem;
    color: #bbb;
    letter-spacing: .01em;
}
