/* ========================================================================
   Sidebar Navigation Styles
   ======================================================================== */

/* Mobile Toggle Button */
.sidebar-mobile-toggle {
    padding: 0.5rem 0.75rem;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* Chevron Toggle Button */
.chevron-toggle-btn {
    border: none;
    background: none;
    transition: transform 0.2s ease;
}

.chevron-toggle-btn:hover {
    background-color: rgba(var(--bs-secondary-rgb), 0.1);
    border-radius: 0.25rem;
}

.chevron-toggle-btn:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

/* Chevron Icon Rotation Animation */
.chevron-icon {
    transition: transform 0.2s ease;
}

.chevron-toggle-btn[aria-expanded="true"] .chevron-icon {
    transform: rotate(180deg);
}

/* Focus Indicators for Keyboard Navigation */
.nav-link:focus-visible,
.dropdown-toggle:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.25);
}

/* Collapsible Navigation Items - Indentation */
.project-collapse.nav-item .nav-link,
.settings-collapse.nav-item .nav-link {
    padding-left: 2.5rem;
}

/* Skip Link for Accessibility (if added in future) */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--bs-primary);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Profile Picture Styling */
.profile-picture {
    width: 36px;
    height: 36px;
    object-fit: cover;
}

/* Dropdown Menu Improvements */
.dropdown-menu {
    min-width: 200px;
}

/* Navigation Section Headers (if added in future) */
.nav-section-header {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--bs-secondary);
}

/* Responsive Adjustments */
@media (max-width: 575.98px) {
    /* On very small screens, ensure icon-only navigation is clear */
    .nav-link i {
        font-size: 1.25rem;
    }
}

/* Dark Mode Support (if theme switcher added) */
@media (prefers-color-scheme: dark) {
    .chevron-toggle-btn:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
}
