:root {
  --bg-primary: #ffffff;
  --bg-sidebar: #f8f9fa;
  --text-main: #333333;
  --text-muted: #666666;
  --border-color: #e1e4e8;
  --accent-color: #0070f3;
  /*--code-bg: #2c2e35;*/
}
:root {
  --bg-color: #f8fafc;
  --text-color: #334155;
  --sidebar-bg: #ffffff;
  --border-color: #e2e8f0;
  --primary-color: #2563eb;
  --code-bg: #2c2e35;
  --code-text: #eef0ff;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  color: var(--text-main);
  background-color: var(--bg-primary);
  line-height: 1.6;
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 60px;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  z-index: 100;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
}
.logo span {
  color: var(--accent-color);
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 1.5rem;
  font-size: 0.9rem;
}

.container {
  display: flex;
  margin-top: 60px;
}

.sidebar {
  width: 260px;
  height: calc(100vh - 60px);
  background: var(--bg-sidebar);
  position: fixed;
  overflow-y: auto;
  border-right: 1px solid var(--border-color);
  padding: 2rem 1rem;
}

.sidebar ul {
  list-style: none;
}

.sidebar li a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.sidebar li a:hover,
.sidebar li a.active {
  background: var(--border-color);
  color: var(--text-main);
  font-weight: 500;
}

.content {
  margin-left: 260px;
  padding: 1.5rem;
  max-width: 900px;
  width: 100%;
}

section {
  padding-bottom: 3rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--border-color);
}

h1 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
  color: #111;
}
h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}
p {
  margin-bottom: 1.25rem;
  color: #444;
}
/*
code {
    background: #f1f3f5;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9rem;
}

pre {
    margin-bottom: 1.5rem;
    border-radius: 6px;
    overflow-x: auto;
}
*/
.callout {
  padding: 1rem;
  border-left: 4px solid;
  border-radius: 0 6px 6px 0;
  margin-bottom: 1.5rem;
}
.callout.info {
  background: #ebf5ff;
  border-color: var(--accent-color);
}
.callout code{
  color: #444;
}
.badge {
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: bold;
  color: white;
}
.badge.get {
  background: #2ecc71;
}

.table-container {
  overflow-x: auto;
  margin-top: 1rem;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th,
td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}
th {
  background: var(--bg-sidebar);
}

@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
    border-right: none;
  }
  .content {
    margin-left: 0;
    padding: 0rem;
  }
}

/* Code Panel */
.code-container {
  background: var(--code-bg);
  color: var(--code-text);
  border-radius: 8px;
  margin-bottom: 2rem;
  overflow: hidden;
  position: relative;
  border: 1px solid #1e293b;
}

.code-header {
  background: #1e293b;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #94a3b8;
}

.copy-btn {
  background: #334155;
  color: #fff;
  border: none;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}

.copy-btn:hover {
  background: var(--primary-color);
}

pre {
  padding: 1.25rem;
  overflow-x: auto;
  font-family: ui-monospace, monospace;
  font-size: 0.9rem;
  color: var(--code-text);
  line-height: 1.5;
}
pre code {
  font-size: 14px !important;
}