.main-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100vh;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-link {
    display: block;
    text-decoration: none;
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s;
}

.brand-link:hover {
    color: #4facfe;
    transform: scale(1.05);
}

.sidebar-user {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.user-panel {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px;
}

.user-name {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.user-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.stat-badge {
    background: rgba(79, 172, 254, 0.2);
    color: #4facfe;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.sidebar-nav {
    padding: 10px 0;
}

.nav-section {
    margin-bottom: 20px;
}

.nav-section-title {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 10px 20px 5px;
    margin: 0;
    letter-spacing: 1px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.nav-link:hover {
    background: rgba(79, 172, 254, 0.1);
    color: #fff;
    border-left-color: #4facfe;
}

.nav-link.active {
    background: rgba(79, 172, 254, 0.2);
    color: #4facfe;
    border-left-color: #4facfe;
    font-weight: 600;
}

.nav-icon {
    font-size: 20px;
    margin-right: 12px;
    width: 24px;
    text-align: center;
}

.logout-link {
    color: #ff6b6b !important;
}

.logout-link:hover {
    background: rgba(255, 107, 107, 0.1);
    border-left-color: #ff6b6b;
}

.lang-switcher-sidebar {
    display: flex;
    gap: 8px;
    padding: 0 20px;
}

.lang-switcher-sidebar .lang-btn {
    flex: 1;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.lang-switcher-sidebar .lang-btn:hover {
    background: rgba(79, 172, 254, 0.1);
    border-color: #4facfe;
    color: #fff;
}

.lang-switcher-sidebar .lang-btn.active {
    background: #4facfe;
    border-color: #4facfe;
    color: #fff;
    font-weight: 600;
}

/* Scrollbar */
.main-sidebar::-webkit-scrollbar {
    width: 6px;
}

.main-sidebar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.main-sidebar::-webkit-scrollbar-thumb {
    background: rgba(79, 172, 254, 0.3);
    border-radius: 3px;
}

.main-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(79, 172, 254, 0.5);
}

/* Sidebar Toggle */
.sidebar-toggle-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s;
    line-height: 1;
}

.sidebar-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.sidebar-open-btn {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1001;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 1px solid rgba(79, 172, 254, 0.3);
    color: #4facfe;
    font-size: 22px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.2s;
    line-height: 1;
}

.sidebar-open-btn:hover {
    background: linear-gradient(135deg, #16213e, #1a1a2e);
    border-color: #4facfe;
    transform: scale(1.05);
}

.sidebar-open-btn.show {
    display: block;
}

.main-sidebar {
    transition: transform 0.3s ease;
}

.main-sidebar.collapsed {
    transform: translateX(-100%);
}

.content-wrapper.sidebar-collapsed,
.content.sidebar-collapsed {
    margin-left: 0 !important;
    width: 100% !important;
}

@media (max-width: 768px) {
    .main-sidebar {
        transform: translateX(-100%);
    }
    .main-sidebar.show {
        transform: translateX(0);
    }
    .sidebar-open-btn {
        display: block;
    }
}
