
:root {
    --bg-body: #f8fafc; --bg-nav: #ffffff; --bg-surface: #ffffff;
    --text-pri: #0f172a; --text-sec: #64748b;
    --accent: #2563eb; --accent-light: #eff6ff;
    --border: #e2e8f0; --shadow: 0 1px 3px 0 rgba(0,0,0,0.1);
    --font-main: 'Plus Jakarta Sans', sans-serif;
    --sidebar-w: 280px;
}
[data-theme="dark"] {
    --bg-body: #0f172a; --bg-nav: #1e293b; --bg-surface: #1e293b;
    --text-pri: #f1f5f9; --text-sec: #94a3b8;
    --accent: #3b82f6; --accent-light: #1e3a8a;
    --border: #334155; --shadow: 0 4px 6px -1px rgba(0,0,0,0.3);
}
* { box-sizing: border-box; margin: 0; padding: 0; outline: none; }
body { font-family: var(--font-main); background: var(--bg-body); color: var(--text-pri); line-height: 1.6; }
a { text-decoration: none; color: inherit; transition: color 0.2s; }

/* Layout */
.layout-container { display: flex; min-height: 100vh; }
.main-wrapper { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.main { padding: 2rem 3rem; flex: 1; max-width: 1200px; margin: 0 auto; width: 100%; }

/* Sidebar */
.sidebar { 
    width: var(--sidebar-w); background: var(--bg-nav); border-right: 1px solid var(--border); 
    position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; 
    padding: 1.5rem; flex-shrink: 0; z-index: 1000;
}
.brand { font-size: 1.5rem; font-weight: 800; color: var(--text-pri); margin-bottom: 2rem; display: block; }
.brand span { color: var(--accent); }
.nav-header { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; color: var(--text-sec); margin: 1.5rem 0 0.5rem; }
.nav-link { display: block; padding: 0.5rem 0.75rem; font-size: 0.95rem; color: var(--text-pri); border-radius: 6px; }
.nav-link:hover { background: var(--bg-body); color: var(--accent); }
.menu-close { display: none; background: none; border: none; font-size: 1.5rem; color: var(--text-sec); position: absolute; top: 1rem; right: 1rem; cursor: pointer; }

/* Header */
.main-header { 
    height: 70px; background: var(--bg-nav); border-bottom: 1px solid var(--border); 
    display: flex; align-items: center; padding: 0 2rem; position: sticky; top: 0; z-index: 90;
}
.header-content { width: 100%; display: flex; justify-content: space-between; align-items: center; }
.menu-open { display: none; background: none; border: none; color: var(--text-pri); cursor: pointer; }
.breadcrumb { font-size: 0.9rem; color: var(--text-sec); }
.breadcrumb a:hover { color: var(--accent); }
.btn-theme { background: transparent; border: 1px solid var(--border); width: 36px; height: 36px; border-radius: 8px; color: var(--text-sec); display: flex; align-items: center; justify-content: center; cursor: pointer; }
[data-theme="light"] .moon { display: none; }
[data-theme="dark"] .sun { display: none; }

/* Cards & Content */
.card { background: var(--bg-surface); padding: 2rem; border-radius: 12px; border: 1px solid var(--border); margin-bottom: 2rem; box-shadow: var(--shadow); }
.grid-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.device-card { background: var(--bg-surface); padding: 1.25rem; border-radius: 12px; border: 1px solid var(--border); display: block; transition: transform 0.2s; }
.device-card:hover { transform: translateY(-3px); border-color: var(--accent); }

/* Typography & Data */
h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: 1rem; line-height: 1.2; }
.accent { color: var(--accent); }
.data-box { background: var(--bg-body); border: 1px solid var(--border); padding: 1.5rem; border-radius: 8px; font-family: 'Fira Code', monospace; display: flex; justify-content: space-between; align-items: center; margin-top: 1rem; font-size: 1.25rem; font-weight: 700; }
.btn-copy { background: var(--accent); color: white; border: none; padding: 0.5rem 1rem; border-radius: 6px; font-size: 0.8rem; cursor: pointer; font-weight: 600; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 3rem; background: var(--bg-surface); margin-top: auto; }
.footer-content { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; }

/* Responsive */
@media (max-width: 1024px) {
    .sidebar { position: fixed; left: -100%; transition: left 0.3s; width: 280px; box-shadow: 20px 0 50px rgba(0,0,0,0.2); }
    .sidebar.active { left: 0; }
    .menu-close { display: block; }
    .menu-open { display: block; }
    .main { padding: 1.5rem; }
    .main-header { padding: 0 1rem; }
    .footer-content { flex-direction: column; gap: 2rem; }
}
