/* sidenav.css — aligned to colors.css / ui-elements.css tokens.
   App-specific component (not part of the universal style rules —
   sidebars aren't required on every page), but it must still use the
   shared color, spacing, radius and type tokens like everything else. */

:root {
    --sidenav-width: 120px;
}

#content {
    margin-left: calc(var(--sidenav-width) + var(--space-4) * 2);
    min-height: 100vh;
}

/* pages that opt out of the sidenav (see base.html body_class block) */
body.no-sidenav #content {
    margin-left: 0;
}

#side-nav {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: var(--sidenav-width);
    position: fixed;
    top: 0;
    left: 0;
    background: var(--surface);
    border-right: 1px solid var(--line);
    padding: var(--space-4);
    padding-top: 2px;
    box-sizing: border-box;
    z-index: 200;
}

.image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--space-4);
}

.image-container img {
    width: 100%;
    max-width: 70px;
    height: auto;
    object-fit: contain;
}

.seperator {
    border: none;
    border-top: 1px solid var(--line);
    margin: var(--space-2) 0;
}

.nav-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.nav-section.grow {
    flex: 1;
}

#bottom-nav {
    margin-top: auto;
    padding: var(--space-3) var(--space-2) var(--space-5);
}

/* ---- text nav items (Home, Events, Tasks, Apps, Logout) ---- */

.nav-item {
    width: 100%;
    padding: 10px var(--space-3);
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text);
    text-align: left;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
}

.nav-item:hover {
    background: var(--surface-2);
}

.nav-item.active {
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 600;
}

.nav-item.danger {
    color: var(--danger);
}

.nav-item.danger:hover {
    background: rgba(229, 72, 77, .1);
}

/* ---- icon-only nav items (About, Settings, Account) ---- */

.icon-item {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text);
    cursor: pointer;
    font-size: 20px;
    transition: background .15s ease;
    font-family: inherit;
}

.icon-item:hover {
    background: var(--surface-2);
}

.icon-item.active {
    background: var(--accent-soft);
    color: var(--accent);
}