/* ================= CORE THEME ================= */
:root {
  --bg: #0a0f1f;
  --panel: #121936;
  --panel-dark: #0e1430;
  --border: #24307a;
  --accent: #ff9800;
  --text: #e6ebff;
  --muted: #9aa7ff;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: "Segoe UI", Arial, sans-serif; }

body {
  background: var(--bg);
  color: var(--text);
  height: 100vh;
  display: flex;
}

/* ================= SIDEBAR ================= */
#sidebar {
  width: 260px;
  background: var(--panel);
  border-right: 1px solid var(--border);
  padding: 20px;
  overflow-y: auto;
}

#sidebar h2 {
  margin-bottom: 20px;
  color: var(--accent);
}

.topic {
  padding: 12px;
  margin-bottom: 6px;
  border-radius: 8px;
  cursor: pointer;
  background: var(--panel-dark);
}
.topic:hover,
.topic.active {
  background: var(--accent);
  color: #000;
}
 
.back {
padding-top: 12px;
padding: 12px;
margin-bottom: 6px;
border-radius: 8px;
cursor: pointer;
background: var(--panel-dark);
margin-top: 6px;
color: #fff;
}
.back:hover,
.back.active{
    background: var(--accent);
    color: #000;
}
a {
  text-decoration: none;
  color: inherit;
}
/* ================= CONTENT ================= */
#content {
  flex: 1;
  padding: 30px;
  overflow-y: auto;
}

.lesson h1 {
  font-size: 28px;
  margin-bottom: 20px;
}

.lesson p {
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 16px;
  max-width: 900px;
}

pre {
  background: #060a18;
  border-left: 4px solid var(--accent);
  padding: 16px;
  border-radius: 8px;
  overflow-x: auto;
  margin-bottom: 20px;
}

button {
  background: var(--accent);
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

/* ================= QUIZ ================= */
.quiz {
  margin-top: 30px;
}
.quiz button {
  display: block;
  width: 100%;
  margin-top: 10px;
}
.correct { background: #4caf50; }
.wrong { background: #f44336; }

/* ================= NOTES ================= */
textarea {
  width: 100%;
  min-height: 200px;
  background: #060a18;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  color: #fff;
}