/* NihonGo! app shell — compact sidebar + topbar (sizes matched to the PV reference app). */
:root { --sb-w: 240px; --top-h: 58px; --sb-bg: #0b0d13; }

/* Slightly smaller rem base so every page's rem-based text scales down together */
html.ng-html { font-size: 14.5px; }

body.ng-shell { padding-left: var(--sb-w); font-size: 14px; }
body.ng-shell > header { display: none !important; }
body.ng-shell .container { max-width: 1400px; padding: 22px 28px 48px; }

/* ── Sidebar ── */
.ng-sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sb-w);
  background: var(--sb-bg); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; overflow: hidden; z-index: 300;
  transition: transform .28s ease;
}
.ng-brand { display:flex; align-items:center; gap:10px; padding:16px 18px 14px; text-decoration:none; color:var(--text);
  border-bottom:1px solid rgba(255,255,255,.07); flex-shrink:0; }
.ng-logo { width:36px; height:36px; border-radius:9px; background:linear-gradient(135deg,#ff3c5f,#c2184a);
  display:flex; align-items:center; justify-content:center; font-size:18px; flex-shrink:0; }
.ng-brand small { display:block; font-size:10px; color:var(--text-dim); line-height:1.2; font-family:'Zen Kaku Gothic New',sans-serif; }
.ng-brand b { font-family:'Syne',sans-serif; font-size:15px; font-weight:800; line-height:1.2; }
.ng-nav { padding: 10px 10px 16px; flex: 1; overflow-y: auto; }
.ng-nav::-webkit-scrollbar { width: 4px; } .ng-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 4px; }
.ng-group h6 { font-size:10px; letter-spacing:.08em; text-transform:uppercase; color:#5b6378; margin:0; padding:10px 10px 4px; font-weight:700; }
.ng-link { display:flex; align-items:center; gap:10px; padding:8px 10px; border-radius:8px; margin-bottom:1px;
  color:#a3aac0; text-decoration:none; font-size:13.5px; font-weight:500; transition:all .15s; }
.ng-link:hover { background:rgba(255,255,255,.06); color:#e8eaf3; }
.ng-link.active { background:rgba(199,125,255,.16); color:#e9d5ff; font-weight:600; }
.ng-ico { width:20px; text-align:center; font-size:15px; flex-shrink:0; }

/* ── Topbar ── */
.ng-topbar {
  position: sticky; top: 0; z-index: 200; height: var(--top-h);
  display:flex; align-items:center; gap:14px; padding:0 28px;
  background: rgba(11,13,19,.9); backdrop-filter: blur(14px); border-bottom:1px solid var(--border);
}
.ng-burger { background:none; border:0; color:var(--text); font-size:20px; cursor:pointer; display:none; padding:4px 6px; }
.ng-search { flex:1; max-width:460px; position:relative; margin:0; }
.ng-search input { width:100%; height:36px; border-radius:18px; border:1px solid var(--border); background:var(--surface);
  color:var(--text); padding:0 14px 0 38px; font:inherit; font-size:13px; outline:none; }
.ng-search input:focus { border-color:var(--neon-teal); }
.ng-search span { position:absolute; left:13px; top:50%; transform:translateY(-50%); opacity:.7; font-size:13px; }
.ng-right { margin-left:auto; display:flex; align-items:center; gap:16px; font-size:12.5px; color:var(--text-dim); }
.ng-dot { display:inline-block; width:7px; height:7px; border-radius:50%; background:var(--neon-green); margin-right:6px; }
.ng-dot.off { background:var(--neon-red); }
.ng-bell { position:relative; font-size:16px; text-decoration:none; line-height:1; }
.ng-bell i { position:absolute; top:-6px; right:-9px; background:var(--neon-red); color:#fff; font-style:normal;
  font-size:10px; font-weight:700; border-radius:8px; padding:1px 5px; line-height:1.3; }
.ng-user { position:relative; }
.ng-user > button { display:flex; align-items:center; gap:8px; background:none; border:0; color:var(--text);
  font:inherit; font-weight:600; font-size:13px; cursor:pointer; padding:0; }
.ng-avatar { width:30px; height:30px; border-radius:50%; background:linear-gradient(135deg,var(--neon-red),#ff6b35);
  display:flex; align-items:center; justify-content:center; font-weight:800; font-size:13px; color:#fff; }

.ng-backdrop { display:none; position:fixed; inset:0; background:rgba(0,0,0,.6); z-index:250; }

@media (max-width: 900px) {
  body.ng-shell { padding-left:0; }
  .ng-sidebar { transform:translateX(-100%); }
  body.ng-open .ng-sidebar { transform:none; }
  body.ng-open .ng-backdrop { display:block; }
  .ng-burger { display:block; }
  .ng-hide-sm { display:none; }
  .ng-topbar { padding:0 14px; gap:10px; }
  body.ng-shell .container { padding: 16px 14px 40px; }
}
