/* === Sidebar === */
.sidebar {
    width: 240px;
    min-height: 100vh;
    background: var(--sidebar-bg);
    padding: 28px 0;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 100;
    transition: transform 0.3s ease;
}

.sidebar-brand {
    padding: 0 24px 28px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 16px;
}

.sidebar-brand h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
}

.sidebar-brand span {
    font-size: 0.75rem;
    color: var(--sidebar-text);
    display: block;
    margin-top: 2px;
}

.sidebar-nav {
    list-style: none;
    padding: 0 12px;
}

.sidebar-nav li { margin-bottom: 4px; }

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--sidebar-text);
    transition: all 0.15s ease;
}

.sidebar-nav a:hover { color: #fff; background: var(--sidebar-active-bg); }
.sidebar-nav a.ativo { color: var(--sidebar-active); background: var(--sidebar-active-bg); }

.sidebar-nav .nav-icone {
    width: 20px;
    text-align: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}

/* === Hamburger (mobile) === */
.menu-toggle {
    display: none;
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 200;
    background: var(--sidebar-bg);
    color: #fff;
    border: none;
    border-radius: 8px;
    width: 42px;
    height: 42px;
    font-size: 1.3rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 90;
}

/* === Conteúdo === */
.main {
    margin-left: 240px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
    min-height: 100vh;
}

.main.main-topo {
    align-items: flex-start;
    padding-top: 48px;
}

/* === Responsivo === */
@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.aberta { transform: translateX(0); }
    .menu-toggle { display: flex; }
    .overlay.visivel { display: block; }
    .main { margin-left: 0; padding: 80px 16px 32px; }
    .main.main-topo { padding-top: 80px; }
}
