﻿/* sidebar.css */

/* Sidebar container */
.app-sidebar {
    width: 260px;
    position: sticky;
    top: 56px;
    height: calc(100vh - 56px);
    background: #fff;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
}

    /* Collapsed sidebar width */
    .app-sidebar.is-collapsed {
        width: 52px;
    }

/* Sidebar scroll area (excluding bottom toggle strip) */
.app-sidebar-inner {
    flex: 1 1 auto;
    overflow-y: auto;
}

/* Nav link styling */
.app-nav-link {
    color: #1f2937;
    border-radius: 0.5rem;
    margin: 0.1rem 0.6rem;
}

    .app-nav-link.active {
        background: #e9f2ff;
        font-weight: 600;
    }

/* Hide nav text + section titles when collapsed */
.app-sidebar.is-collapsed .app-nav-text {
    display: none;
}

.app-sidebar.is-collapsed .app-nav-section-title {
    display: none;
}

/* Icons alignment */
.app-nav-icon {
    display: inline-flex;
    width: 22px;
    justify-content: center;
}

/* Collapsed nav link spacing/centering */
.app-sidebar.is-collapsed .app-nav-link {
    justify-content: center;
    margin: 0.1rem 0.4rem;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}

.app-sidebar.is-collapsed .app-nav-icon {
    margin-right: 0 !important;
    font-size: 1.1rem;
}

/* Bottom toggle strip */
.app-sidebar-toggle {
    flex: 0 0 auto;
    padding: 10px;
    background: #fff;
    position: sticky;
    bottom: 0;
}

.app-sidebar-toggle-btn {
    width: 100%;
    border-radius: 8px;
}

.app-sidebar.is-collapsed .app-sidebar-toggle {
    padding: 10px 8px;
}