/* Layout raiz do app principal — sidebar + main lado a lado */
body { display: flex; }

/* ══ SIDEBAR ══ */
.sidebar { position: fixed; top: 0; left: 0; bottom: 0; width: var(--sidebar-w); background: #0f1e2e; display: flex; flex-direction: column; padding: 0 0 20px; z-index: 200; box-shadow: 4px 0 20px rgba(0,0,0,.18); transition: transform .3s ease; }
.logo { display: flex; align-items: center; justify-content: center; padding: 16px 20px 14px; border-bottom: 1px solid rgba(255,255,255,.07); }
.sidebar-logo-img { width: 120px; height: 120px; object-fit: contain; border-radius: 12px; display: block; }
.logo h1 { font-family: 'Plus Jakarta Sans', sans-serif; color: #fff; font-size: 1rem; font-weight: 600; line-height: 1.2; }
.logo span { color: var(--brand); }
.logo p { color: rgba(255,255,255,.4); font-size: .7rem; margin-top: 2px; }

/* Mobile header logo */
.mobile-logo-wrap { display: flex; align-items: center; gap: 8px; color: #fff; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.05rem; font-weight: 600; }
.mobile-logo-img  { width: 28px; height: 28px; object-fit: contain; border-radius: 6px; }
.mobile-logo-wrap .sp { color: var(--brand); }
nav { flex: 1; padding: 14px 10px; overflow-y: auto; }
nav button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: none; background: transparent; color: rgba(255,255,255,.5); font-family: 'Plus Jakarta Sans', sans-serif; font-size: .85rem; font-weight: 500; border-radius: var(--r-sm); cursor: pointer; transition: all .18s; margin-bottom: 2px; text-align: left; }
nav button:hover  { background: rgba(255,255,255,.06); color: rgba(255,255,255,.85); }
nav button.active { background: var(--orange); color: #fff; box-shadow: 0 4px 14px rgba(255,117,31,.35); }
.nav-icon { width: 18px; height: 18px; flex-shrink: 0; }
.sidebar-footer { padding: 14px 18px; border-top: 1px solid rgba(255,255,255,.07); }
.sb-status { display: flex; align-items: center; gap: 8px; }
.sb-dot { width: 7px; height: 7px; background: var(--green); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }
.sb-status span:last-child { color: rgba(255,255,255,.3); font-size: .7rem; }
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 199; }
.sidebar-overlay.open { display: block; }
