@import url('https://api.fontshare.com/v2/css?f[]=satoshi@400,500,700&display=swap');

:root {
  --bg: #ffffff;
  --panel: #f9fafb;
  --text: #111827;
  --muted: #6b7280;
  --accent: #4f46e5;
  --border: #e5e7eb;
}

[data-theme="dark"] {
  --bg: #0f172a;
  --panel: #111827;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --accent: #6366f1;
  --border: #1f2937;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  display: flex;
  font-family: 'Satoshi', sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* SIDEBAR */
.sidebar {
  width: 260px;
  height: 100vh;
  padding: 24px;
  border-right: 1px solid var(--border);
  background: var(--panel);
  display: flex;
  flex-direction: column;
}

.sidebar-top {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar h2 {
  font-size: 18px;
}

.search input {
  width: 100%;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
}

/* NAV FIX */
.nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nav a {
  font-size: 16px;
  text-decoration: none;
  color: var(--muted);
}

.nav a.active {
  color: var(--accent);
  font-weight: 500;
}

.nav a:hover {
  color: var(--text);
}

/* MAIN CONTENT (CENTER FIX) */
.main-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
}

.main {
  max-width: 700px;
  padding: 60px 40px;
  width: 100%;
}

h1 {
  font-size: 32px;
  margin-bottom: 20px;
}

h2 {
  font-size: 20px;
  margin-top: 30px;
  margin-bottom: 10px;
}

p {
  color: var(--muted);
  line-height: 1.7;
}

/* TOGGLE */
.sidebar-bottom {
  margin-top: auto;
}

.switch {
  position: relative;
  width: 50px;
  height: 26px;
}

.switch input {
  display: none;
}

.slider {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
}

.slider::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  left: 3px;
  transition: 0.3s;
}

input:checked + .slider::before {
  transform: translateX(24px);
}

.slider span {
  font-size: 12px;
}
