/* ========== Side Navigation ========== */
aside {
    scrollbar-width: thin;
    scrollbar-color: #334155 transparent;
}

aside::-webkit-scrollbar {
    width: 4px;
}
aside::-webkit-scrollbar-track {
    background: transparent;
}
aside::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

/* Make sure main content has space for the sidebar */
body {
    display: flex;
    min-height: 100vh;
}

main, 
.content-wrapper,
.page-content {
    flex: 1;
    min-width: 0; /* prevents overflow issues */
}

/* Optional: nicer active indicator */
aside a.active,
aside a[aria-current="page"] {
    background: rgba(249, 115, 22, 0.15);
    color: #fb923c;
    border: 1px solid rgba(249, 115, 22, 0.3);
}
/* ========== Collapsible Sidebar ========== */
#sidebar {
    scrollbar-width: thin;
    scrollbar-color: #334155 transparent;
}

#sidebar::-webkit-scrollbar {
    width: 4px;
}
#sidebar::-webkit-scrollbar-track {
    background: transparent;
}
#sidebar::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #0a0a0f;
    color: #e2e8f0;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;   /* Important */
}
/* Prevent horizontal scroll when sidebar is open */
body.sidebar-open {
    overflow: hidden;
}

/* Push footer to the bottom */
main, 
.content-wrapper,
.page-content {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
    width: 100%;
}