.app { display:flex; min-height:100vh; }
.sidebar {
  width: var(--sidebar-width);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
  border-right: 1px solid var(--border);
  padding: 18px 14px;
  display:flex;
  flex-direction:column;
  gap:12px;
  transition: width 240ms ease;
}
.sidebar .logo { width:44px; height:44px; border-radius:8px; object-fit:cover; }
.brand { display:flex; gap:12px; align-items:center; }
.brand-text h3 { margin:0; font-size:16px; color:var(--text); }
.brand-text p { margin:0; font-size:12px; color:var(--muted); }

.toggle-btn { background:none; border:none; color:var(--muted); font-size:18px; cursor:pointer; margin-left:auto; }
.nav { display:flex; flex-direction:column; gap:6px; margin-top:6px; }
.nav a {
  display:flex; gap:10px; align-items:center; padding:10px; border-radius:8px; color:var(--muted); text-decoration:none;
}
.nav a i { width:18px; text-align:center; }
.nav a:hover { background:var(--glass); color:var(--text); }
.nav a.active { background:rgba(43,124,255,0.12); color:var(--accent); }

.social { display:flex; gap:10px; margin-top:auto; }
.social a { color:var(--muted); font-size:18px; }
.sidebar-bottom { margin-top:12px; display:flex; flex-direction:column; gap:8px; }

.theme-controls { display:flex; gap:6px; }
.theme-controls button { background:transparent; border:1px solid var(--border); color:var(--muted); padding:6px 8px; border-radius:6px; cursor:pointer; }

.content { flex:1; display:flex; flex-direction:column; min-height:100vh; }
.topbar { height:56px; display:flex; align-items:center; justify-content:space-between; padding:0 20px; border-bottom:1px solid var(--border); background:transparent; }
.frame-wrap { padding:24px; flex:1; }
#content-frame { width:100%; height:calc(100vh - 56px - 48px); background:transparent; border-radius:12px; border:1px solid var(--border); }
.mobile-menu-btn { display:none; }

@media (max-width: 900px) {
  .sidebar { position:fixed; left:0; top:0; bottom:0; z-index:40; transform:translateX(-100%); transition:transform 200ms ease; }
  .sidebar.open { transform:translateX(0); }
  .mobile-menu-btn { display:inline-flex; }
  .content { margin-left:0; }
  #content-frame { height:calc(100vh - 56px); }
}