@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg-main: #0d1117;
  --bg-sidebar: #161b22;
  --bg-table-row: #0d1117;
  --bg-table-alt: #161b22;
  --bg-table-head: #21262d;
  --bg-code: rgba(110, 118, 129, 0.4);
  
  --text-main: #c9d1d9;
  --text-heading: #f0f6fc;
  --color-link: #58a6ff;
  --color-link-hover: #79c0ff;
  
  --border-subtle: #30363d;
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, monospace;
}

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

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
}

/* --- Layout --- */
.sidebar {
  width: 260px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-subtle);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 2rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-heading);
  text-transform: uppercase;
}

.nav-menu {
  list-style: none;
  font-size: 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  color: var(--text-main);
  text-decoration: none;
  border-radius: 6px;
}

.nav-link:hover {
  background: rgba(177, 186, 196, 0.12);
  color: var(--text-heading);
}

.nav-link.active {
  background: rgba(56, 139, 253, 0.15);
  color: var(--color-link);
  font-weight: 600;
}

.main-content {
  flex: 1;
  padding: 3rem 4rem;
  max-width: 1200px;
}

/* --- Typography Options --- */
h1, h2, h3, h4 {
  color: var(--text-heading);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.2rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

h2 {
  font-size: 1.5rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--border-subtle);
}

p, ul {
  margin-bottom: 1rem;
}

ul { padding-left: 1.5rem; }

a {
  color: var(--color-link);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration: underline;
  color: var(--color-link-hover);
  text-decoration-thickness: 2px;
}

code {
  font-family: var(--font-mono);
  background: var(--bg-code);
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-size: 0.85em;
  color: #ff7b72;
}

/* --- Tables --- */
.reference-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  border: 1px solid var(--border-subtle);
}

.reference-table th, .reference-table td {
  padding: 12px 15px;
  border: 1px solid var(--border-subtle);
  text-align: left;
}

.reference-table th {
  background-color: var(--bg-table-head);
  color: var(--text-heading);
  font-weight: 600;
  position: sticky;
  top: 0;
}

.reference-table tbody tr:nth-child(even) {
  background-color: var(--bg-table-alt);
}

.reference-table tbody tr:hover {
  background-color: rgba(177, 186, 196, 0.1);
}

/* --- Utilities --- */
.alert-box {
  background: rgba(88, 166, 255, 0.1);
  border-left: 4px solid var(--color-link);
  padding: 1rem;
  border-radius: 0 4px 4px 0;
  margin: 1.5rem 0;
}
