/* Navigation Visibility Fix */

/* Ensure all navigation items are visible */
.sidebar-nav ul li {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    list-style: none;
}

/* Fix for dynamically added items */
.sidebar-nav ul li a {
    display: flex !important;
    align-items: center;
    padding: 12px 16px;
    color: #e5e7eb;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
}

/* Ensure sidebar shows all items when expanded */
.sidebar:not(.collapsed) .sidebar-nav ul {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    overflow-x: hidden;
}

/* Scrollbar styling for navigation */
.sidebar-nav ul::-webkit-scrollbar {
    width: 6px;
}

.sidebar-nav ul::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-nav ul::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.sidebar-nav ul::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Fix sidebar height to show all items */
.sidebar {
    height: calc(100vh - var(--header-height));
    overflow-y: auto;
}

/* Ensure sidebar is expanded by default on desktop */
@media (min-width: 1024px) {
    .sidebar {
        width: var(--sidebar-width) !important;
    }
    
    .sidebar.collapsed {
        width: var(--sidebar-collapsed-width) !important;
    }
}