/* Sidebar Styles */
.app-sidebar {
    width: 250px;
    background: #2c3e50;
    color: white;
    display: flex;
    flex-direction: column;
    height: 100vh;
    flex-shrink: 0;
    overflow-y: auto;
}

.nav-item {
    display: block;
    padding: 12px 20px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 15px;
    border-left: 4px solid transparent;
    transition: background 0.2s, color 0.2s, border-left 0.2s;
}

.nav-item:hover {
    background: rgba(255,255,255,0.05);
    color: white;
}

.nav-item.active {
    background: rgba(255,255,255,0.1);
    color: white;
    border-left: 4px solid #3498db;
    font-weight: 500;
}

/* Nav Groups (for collapsible items) */
.nav-group {
    display: flex;
    flex-direction: column;
}

.nav-group-header {
    padding: 12px 20px;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    transition: background 0.2s, color 0.2s;
    border-left: 4px solid transparent;
    user-select: none;
}

.nav-group-header:hover {
    background: rgba(255,255,255,0.05);
    color: white;
}

/* Active header state (when expanded or child active) */
.nav-group-header.nav-group-header-active {
    background: rgba(255,255,255,0.1);
    color: white;
    /* font-weight: 500; */ /* Optional */
}

.nav-group-children {
    display: none; /* Toggled by JS to 'flex' */
    flex-direction: column;
    background: rgba(0,0,0,0.2); /* Darker background for nested items */
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.1);
}

.nav-item.nav-subitem {
    padding-left: 25px; /* Indentation reduced from 45px to prevent wrapping */
    font-size: 14px;
    border-left: 4px solid transparent; /* Keep layout consistent */
}

.nav-item.nav-subitem.active {
    border-left-color: #3498db;
    background: rgba(255,255,255,0.15);
}

/* Buttons at bottom */
.sidebar-btn {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    border-radius: 4px;
    font-size: 13px;
    transition: all 0.2s;
    text-align: center;
}

.sidebar-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
    color: white;
}
