/*
===========================================================================
CHANGE LOG
File: /var/www/html/eaglesflock.nsgia.com/static/css/sidebar_collapsible.css
Type: CSS Stylesheet
Purpose: Collapsible sidebar navigation with scroll-spy highlighting
===========================================================================
2026-01-22 v1.0 - Initial creation
===========================================================================
*/

/* ===== SIDEBAR NAV STRUCTURE ===== */
.sidebar-nav {
    padding: 0.5rem 0;
}

/* ===== NAV LINKS ===== */
.nav-link {
    display: block;
    padding: 0.75rem 1rem;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 0.9rem;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.nav-link:hover {
    background: rgba(255,255,255,0.1);
    border-left-color: rgba(255,255,255,0.5);
}

/* Active state - scroll-spy highlight */
.nav-link.active {
    background: rgba(255,255,255,0.15);
    border-left-color: #fff;
    font-weight: 600;
    color: #fff;
}

/* ===== COLLAPSIBLE GROUPS ===== */
.nav-group {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 0.25rem;
}

.nav-group:first-of-type {
    border-top: none;
    margin-top: 0;
}

.nav-group-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(0,0,0,0.15);
    border: none;
    color: rgba(255,255,255,0.95);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.nav-group-toggle:hover {
    background: rgba(0,0,0,0.25);
}

.toggle-icon {
    font-size: 1rem;
    font-weight: bold;
    transition: transform 0.2s ease;
}

/* Expanded state */
.nav-group-toggle[aria-expanded="true"] .toggle-icon {
    transform: rotate(45deg);
}

.nav-group-toggle[aria-expanded="true"] {
    background: rgba(0,0,0,0.25);
}

/* ===== SUBMENU ===== */
.nav-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0,0,0,0.1);
}

.nav-submenu.open {
    max-height: 500px;
}

.nav-submenu .nav-link {
    padding-left: 1.5rem;
    font-size: 0.85rem;
    border-left-width: 2px;
}

/* ===== PROPERTY INFO ===== */
.sidebar-property-info {
    margin-top: 1rem;
    padding: 1rem;
    border-top: 1px solid rgba(255,255,255,0.15);
    font-size: 0.8rem;
    line-height: 1.5;
    color: rgba(255,255,255,0.9);
}

.property-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.6;
    margin-bottom: 0.5rem;
}

.property-details {
    opacity: 0.9;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .afh-sidebar {
        position: relative;
        width: 100%;
        height: auto;
    }
    
    .sidebar-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 0.25rem;
        padding: 0.5rem;
    }
    
    .nav-link {
        padding: 0.5rem 0.75rem;
    }
    
    .nav-group {
        width: 100%;
    }
    
    .sidebar-property-info {
        display: none;
    }
}

