/* main.css — AppDash Core v2.1 */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
:root{
--bg:#0f172a;--surface:#1e293b;--surface2:#263148;--surface3:#2d3f58;
--border:#334155;--border2:#1e2d3d;
--text:#e2e8f0;--muted:#64748b;--subtle:#94a3b8;
--green:#22c55e;--red:#ef4444;--blue:#3b82f6;--yellow:#eab308;
--purple:#8b5cf6;--orange:#f97316;--indigo:#6366f1;
--radius:6px;--radius-lg:10px;--radius-xl:14px;
--shadow:0 1px 3px rgba(0,0,0,.4);
}
body{font-family:'AppFont',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;background:var(--bg);color:var(--text);line-height:1.5;min-height:100vh}
a{color:var(--blue);text-decoration:none}a:hover{text-decoration:underline}
img,svg{display:block;max-width:100%}
button{cursor:pointer;border:none;background:none;font:inherit;color:inherit}
.layout{display:grid;grid-template-columns:220px 1fr;min-height:calc(100vh - 56px)}
.main{padding:24px;overflow-y:auto;background:var(--bg)}
.nav{height:56px;background:var(--surface);border-bottom:1px solid var(--border);display:flex;align-items:center;padding:0 20px;gap:16px;position:sticky;top:0;z-index:50}
.nav-logo{font-weight:700;font-size:.95rem;display:flex;align-items:center;gap:8px}
.nav-sep{width:1px;height:20px;background:var(--border)}
.nav-links{display:flex;gap:2px}
.nav-link{padding:6px 10px;border-radius:var(--radius);font-size:.8125rem;color:var(--subtle);transition:background .12s,color .12s;cursor:pointer}
.nav-link:hover,.nav-link.active{background:var(--surface2);color:var(--text)}
.nav-right{margin-left:auto;display:flex;align-items:center;gap:10px}
.sidebar{background:var(--surface);border-right:1px solid var(--border);padding:12px 8px;display:flex;flex-direction:column;gap:2px}
.sidebar-section{font-size:.6875rem;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);padding:10px 10px 4px;font-weight:600}
.sidebar-item{display:flex;align-items:center;gap:8px;padding:8px 10px;border-radius:var(--radius);font-size:.8125rem;color:var(--subtle);cursor:pointer;transition:background .12s,color .12s}
.sidebar-item:hover,.sidebar-item.active{background:var(--surface2);color:var(--text)}
.grid{display:grid}.grid-4{grid-template-columns:repeat(4,1fr)}.grid-3{grid-template-columns:repeat(3,1fr)}.grid-2{grid-template-columns:repeat(2,1fr)}
.gap-4{gap:16px}.gap-6{gap:24px}.gap-3{gap:12px}.gap-2{gap:8px}
h1{font-size:1.25rem;font-weight:700}h2{font-size:1.0625rem;font-weight:600}h3{font-size:.875rem;font-weight:600}
.text-sm{font-size:.8125rem}.text-xs{font-size:.75rem}.text-muted{color:var(--muted)}.text-subtle{color:var(--subtle)}
.mt-1{margin-top:4px}.mt-2{margin-top:8px}.mt-4{margin-top:16px}.mt-6{margin-top:24px}
.mb-4{margin-bottom:16px}.mb-6{margin-bottom:24px}.ml-auto{margin-left:auto}
.p-4{padding:16px}.p-5{padding:20px}
.flex{display:flex}.items-center{align-items:center}.justify-between{justify-content:space-between}.flex-col{flex-direction:column}
.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg)}
.card-header{padding:14px 18px;border-bottom:1px solid var(--border);display:flex;align-items:center;gap:8px}
.card-body{padding:18px}
.status-dot{width:8px;height:8px;border-radius:50%;display:inline-block}
.status-ok{background:var(--green)}.status-warn{background:var(--yellow)}.status-err{background:var(--red)}
::-webkit-scrollbar{width:5px;height:5px}::-webkit-scrollbar-track{background:var(--surface)}::-webkit-scrollbar-thumb{background:var(--border);border-radius:3px}