/* Sidebar Navigation */

.sidebar {
    width: 280px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--border);
    padding: 2rem 0;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    z-index: 100;
    overflow-y: auto;
}

.sidebar-header {
    padding: 0 2rem 2rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.sidebar-header h1 {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    margin-bottom: 0.5rem;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem 2rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

.sidebar-menu a svg {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.sidebar-menu a:hover svg {
    transform: translateX(2px);
}

.sidebar-menu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 0 4px 4px 0;
    transition: height 0.3s ease;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.1);
}

.sidebar-menu a.active::before {
    height: 100%;
}

.sidebar-menu a:hover::before {
    height: 60%;
}

/* 13-14" Laptop optimization (1366px - 1440px) */
@media (max-width: 1440px) {
    .sidebar {
        width: 260px;
    }
    
    .sidebar-header {
        padding: 0 1.5rem 1.5rem;
    }
    
    .sidebar-menu a {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 1366px) {
    .sidebar {
        width: 240px;
    }
    
    .sidebar-header h1 {
        font-size: 1.5rem;
    }
    
    .sidebar-menu a {
        padding: 0.75rem 1.25rem;
        gap: 0.75rem;
    }
}

@media (max-width: 1024px) {
    .sidebar {
        width: 220px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar.open {
        transform: translateX(0);
    }
}
