.sidebar {
    width: 240px;
    background: var(--bg2);
    padding: 26px 18px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 999;
    transition: left 0.3s ease;
}

.brand {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
}

.nav-link {
    display: flex;
    gap: 10px;
    padding: 12px;
    border-radius: 8px;
    color: var(--muted);
    text-decoration: none;
    font-size: 15px;
    transition: 0.2s;
}

.nav-link.active,
.nav-link:hover {
    background: rgba(59,130,246,0.2);
    color: var(--primary);
}

.version {
    margin-top: auto;
    font-size: 12px;
    color: #64748b;
}

/* Área principal */
.main {
    margin-left: 240px;
    padding: 30px;
    width: calc(100% - 240px);
}

/* Mobile Menu Toggle */
.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1001;
    background: var(--primary);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 20px;
    align-items: center;
    justify-content: center;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

@media (max-width: 768px) {
    .sidebar {
        left: -240px;
    }
    
    .sidebar.active {
        left: 0;
    }
    
    .sidebar-overlay.active {
        display: block;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .main {
        margin-left: 0;
        width: 100%;
        padding: 60px 1rem 1rem;
    }
}
