:root {
    --bg-dark: #0a0f1e;
    --sidebar-bg: #111827;
    --accent: #0ea5e9;
    --accent-glow: rgba(14, 165, 233, 0.3);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --code-bg: #000000;
    --border: #1e293b;
    --highlight: #10b981;
    --prompt-color: #f472b6;
}

* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    display: flex;
    min-height: 100vh;
}

/* Sidebar a bal oldalon */
aside {
    width: 320px;
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--border);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    padding: 1.5rem;
    z-index: 1000;
}

.brand {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}

nav ul { list-style: none; }
nav li { margin-bottom: 4px; }
nav a {
    color: var(--text-muted);
    text-decoration: none;
    padding: 10px 14px;
    display: block;
    border-radius: 8px;
    font-size: 0.85rem;
    transition: 0.2s;
    line-height: 1.2;
}
nav a:hover { background: var(--border); color: var(--text-main); }
nav a.active {
    background: var(--accent);
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 12px var(--accent-glow);
}

/* Fő tartalom */
main {
    margin-left: 320px;
    flex: 1;
    padding: 4rem 10% 4rem 5%;
    max-width: 1400px;
}

.section { display: none; animation: fadeIn 0.4s ease; }
.section.active { display: block; }

@keyframes fadeIn { 
    from { opacity: 0; transform: translateY(10px); } 
    to { opacity: 1; transform: translateY(0); } 
}

h1 { font-size: 2.8rem; margin-bottom: 1.5rem; color: var(--accent); letter-spacing: -1px; }
h2 { font-size: 1.8rem; margin: 3rem 0 1rem; color: var(--text-main); border-bottom: 1px solid var(--border); padding-bottom: 0.5rem; }
p { margin-bottom: 1rem; color: var(--text-muted); line-height: 1.7; }

/* Tartalomjegyzék az oldalon belül */
.page-toc {
    background: rgba(14, 165, 233, 0.05);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 3rem;
}
.page-toc h4 { margin-bottom: 1rem; font-size: 1rem; color: var(--accent); }
.page-toc ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.page-toc a { color: var(--text-main); text-decoration: none; font-size: 0.9rem; transition: 0.2s; }
.page-toc a:hover { color: var(--accent); padding-left: 5px; }

/* Kód blokkok */
pre {
    background: var(--code-bg);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    overflow-x: auto;
    margin: 1.5rem 0;
    font-family: 'Fira Code', monospace;
    position: relative;
}
pre::before {
    content: "CISCO CLI";
    position: absolute;
    top: 6px;
    right: 12px;
    font-size: 0.65rem;
    color: #475569;
    font-weight: 700;
}
code { color: var(--highlight); font-size: 0.95rem; line-height: 1.5; }
.comment { color: #64748b; font-style: italic; }
.prompt { color: var(--prompt-color); font-weight: bold; }

/* Mobil nézet */
@media (max-width: 1024px) {
    aside { width: 100%; height: auto; position: relative; border-right: none; border-bottom: 1px solid var(--border); }
    main { margin-left: 0; padding: 2rem; }
    body { flex-direction: column; }
    .page-toc ul { grid-template-columns: 1fr; }
}