/* Sidebar Navigation Styles */

.sidebar-nav {
    position: fixed;
    left: 0;
    top: 0;
    width: 250px;
    height: 100vh;
    background: var(--surface);
    border-right: 2px solid var(--border-color);
    padding: 2rem 1rem;
    overflow-y: auto;
    z-index: 1000;
}

.nav-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.nav-header h2 {
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.nav-section {
    margin-bottom: 2rem;
}

.nav-section-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-links li {
    margin-bottom: 0.5rem;
}

.nav-links a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.nav-links a:hover {
    background: var(--surface-light);
    border-left-color: var(--primary-color);
    transform: translateX(4px);
}

.nav-links a.active {
    background: var(--primary-color);
    color: white;
    border-left-color: var(--accent);
}

/* Adjust main content when sidebar is present */
body.has-sidebar .container {
    margin-left: 250px;
    max-width: calc(100% - 250px);
}

/* Mobile responsive */
@media (max-width: 1024px) {
    .sidebar-nav {
        transform: translateX(-100%);
        transition: transform 0.3s;
        box-shadow: 4px 0 6px rgba(0, 0, 0, 0.3);
    }
    
    .sidebar-nav.open {
        transform: translateX(0);
    }
    
    body.has-sidebar .container {
        margin-left: 0;
        max-width: 100%;
    }
    
    .mobile-nav-toggle {
        position: fixed;
        top: 1rem;
        left: 1rem;
        z-index: 1001;
        background: var(--primary-color);
        color: white;
        border: none;
        padding: 0.75rem 1rem;
        border-radius: 6px;
        cursor: pointer;
        font-size: 1.5rem;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        transition: all 0.3s;
    }
    
    .mobile-nav-toggle:hover {
        background: var(--primary-dark);
        transform: scale(1.05);
    }
}

/* Scrollbar styling for sidebar */
.sidebar-nav::-webkit-scrollbar {
    width: 6px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: var(--background);
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

