
/* Docs Layout */
.docs-layout {
  display: flex;
  min-height: 100vh;
}

.docs-sidebar {
  width: 280px;
  background: rgba(15, 15, 20, 0.88);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-right: 1px solid rgba(255,255,255,0.06);
  padding: 32px 0;
  position: fixed;
  top: 80px;
  bottom: 0;
  overflow-y: auto;
  z-index: 100;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.docs-sidebar::-webkit-scrollbar {
  width: 6px;
}

.docs-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.docs-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
}

.docs-sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.2);
}

.docs-search {
  padding: 0 16px 20px;
}

.docs-search-input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  transition: all 0.2s;
}

.docs-search-input:focus {
  outline: none;
  border-color: #818cf8;
  background: rgba(255,255,255,0.08);
}

.docs-search-input::placeholder {
  color: rgba(255,255,255,0.4);
}

.docs-search-wrapper {
  position: relative;
}

.docs-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: rgba(255,255,255,0.4);
  pointer-events: none;
}

.docs-sidebar-section {
  margin-bottom: 24px;
}

.docs-sidebar-title {
  padding: 0 24px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 8px;
}

.docs-sidebar-link {
  display: block;
  padding: 8px 24px;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: all 0.15s;
  border-left: 2px solid transparent;
}

.docs-sidebar-link:hover {
  color: #fff;
  background: rgba(255,255,255,0.03);
}

.docs-sidebar-link.active {
  color: #818cf8;
  border-left-color: #818cf8;
  background: rgba(99, 102, 241, 0.08);
}

.docs-sidebar-cta {
  margin: 24px 16px 0;
  padding: 16px;
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 10px;
  text-align: center;
}
.docs-sidebar-cta a:hover {
  opacity: 0.85;
}

.docs-content {
  flex: 1;
  margin-left: 280px;
  padding: 48px 64px;
  max-width: 900px;
}

.docs-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}

.docs-breadcrumb a {
  color: #818cf8;
  text-decoration: none;
}

.docs-breadcrumb a:hover {
  text-decoration: underline;
}

.docs-title {
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.docs-subtitle {
  font-size: 18px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 40px;
  line-height: 1.6;
}

/* Content Styling */
.docs-section {
  margin-bottom: 48px;
}

.docs-section h2 {
  font-size: 24px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.docs-section h3 {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
  margin-top: 32px;
}

.docs-section p {
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin-bottom: 16px;
}

.docs-section ul, .docs-section ol {
  margin: 16px 0;
  padding-left: 24px;
}

.docs-section li {
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin-bottom: 8px;
}

/* Code Blocks */
.code-block {
  position: relative;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  margin: 20px 0;
  overflow: hidden;
}

.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.code-lang {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
}

.code-copy {
  padding: 4px 10px;
  background: rgba(255,255,255,0.08);
  border: none;
  border-radius: 6px;
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s;
}

.code-copy:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

.code-content {
  padding: 16px 20px;
  overflow-x: auto;
}

.code-content pre {
  margin: 0;
  font-family: 'SF Mono', Consolas, monospace;
  font-size: 13px;
  line-height: 1.6;
  color: #e4e4e7;
}

.code-content .keyword { color: #c084fc; }
.code-content .string { color: #4ade80; }
.code-content .comment { color: rgba(255,255,255,0.4); }
.code-content .function { color: #60a5fa; }
.code-content .const { color: #f472b6; }

/* API Endpoint */
.endpoint-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
}

.endpoint-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.endpoint-method {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  font-family: monospace;
}

.endpoint-method.get { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.endpoint-method.post { background: rgba(34, 197, 94, 0.2); color: #4ade80; }
.endpoint-method.put { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.endpoint-method.delete { background: rgba(239, 68, 68, 0.2); color: #f87171; }

.endpoint-path {
  font-family: monospace;
  font-size: 14px;
  color: #fff;
}

.endpoint-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 16px;
}

.param-table {
  width: 100%;
  border-collapse: collapse;
}

.param-table th, .param-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 13px;
}

.param-table th {
  color: rgba(255,255,255,0.5);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
}

.param-table td {
  color: rgba(255,255,255,0.8);
}

.param-name {
  font-family: monospace;
  color: #818cf8;
}

.param-type {
  font-family: monospace;
  color: #f472b6;
  font-size: 12px;
}

.param-required {
  color: #ef4444;
  font-size: 10px;
  font-weight: 600;
}

/* Quick Start Cards */
.quickstart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.quickstart-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 20px;
  text-decoration: none;
  transition: all 0.2s;
}

.quickstart-card:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-2px);
}

.quickstart-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  background: rgba(99, 102, 241, 0.15);
}

.quickstart-icon svg {
  width: 22px;
  height: 22px;
  stroke: #818cf8;
}

.quickstart-title {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.quickstart-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

/* Response/Info Boxes */
.info-box {
  display: flex;
  gap: 12px;
  padding: 16px;
  border-radius: 10px;
  margin: 20px 0;
}

.info-box.tip {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.info-box.warning {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.info-box.note {
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.info-box-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.info-box.tip .info-box-icon { color: #22c55e; }
.info-box.warning .info-box-icon { color: #f59e0b; }
.info-box.note .info-box-icon { color: #818cf8; }

.info-box-content {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .docs-sidebar {
    display: none;
  }
  .docs-content {
    margin-left: 0;
    padding: 32px 24px;
  }
}

/* API Playground */
.playground-container {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  overflow: hidden;
  min-height: 420px;
  margin-top: 20px;
}

.playground-sidebar-panel {
  background: rgba(255,255,255,0.04);
  border-right: 1px solid rgba(255,255,255,0.08);
  padding: 12px;
  overflow-y: auto;
}

.playground-endpoint {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  transition: all 0.15s;
  text-align: left;
  font-family: inherit;
}

.playground-endpoint:hover {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.9);
}

.playground-endpoint.active {
  background: rgba(129, 140, 248, 0.15);
  color: #818cf8;
  font-weight: 600;
}

.method-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: 'SF Mono', Consolas, monospace;
  flex-shrink: 0;
}

.method-badge.get { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.method-badge.post { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }

.playground-main {
  display: flex;
  flex-direction: column;
  padding: 16px;
  gap: 16px;
}

.playground-url-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
}

.playground-method {
  font-weight: 700;
  font-size: 13px;
  font-family: 'SF Mono', Consolas, monospace;
  color: #3b82f6;
  flex-shrink: 0;
}

.playground-url {
  flex: 1;
  font-size: 13px;
  font-family: 'SF Mono', Consolas, monospace;
  color: rgba(255,255,255,0.5);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.playground-send {
  padding: 6px 16px;
  background: #818cf8;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
}

.playground-send:hover { background: #6366f1; }
.playground-send:disabled { background: #475569; cursor: not-allowed; }

.playground-headers {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.playground-headers label,
.playground-body-section label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.playground-input {
  width: 100%;
  padding: 8px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  font-size: 13px;
  font-family: 'SF Mono', Consolas, monospace;
  color: rgba(255,255,255,0.9);
  outline: none;
  transition: border-color 0.15s;
  box-sizing: border-box;
}

.playground-input:focus { border-color: #818cf8; }

.playground-textarea {
  width: 100%;
  padding: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  font-size: 13px;
  font-family: 'SF Mono', Consolas, monospace;
  color: rgba(255,255,255,0.9);
  outline: none;
  resize: vertical;
  line-height: 1.5;
  transition: border-color 0.15s;
  box-sizing: border-box;
}

.playground-textarea:focus { border-color: #818cf8; }

.playground-response-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.playground-status {
  font-family: 'SF Mono', Consolas, monospace;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
}

.playground-status.success { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.playground-status.error { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.playground-status.loading { background: rgba(249, 115, 22, 0.15); color: #f97316; }

.playground-output {
  flex: 1;
  padding: 16px;
  background: #0d1117;
  border-radius: 8px;
  font-size: 13px;
  font-family: 'SF Mono', Consolas, monospace;
  color: #e6edf3;
  overflow: auto;
  min-height: 100px;
  max-height: 280px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-all;
  margin: 0;
}

@media (max-width: 768px) {
  .playground-container {
    grid-template-columns: 1fr;
  }
  .playground-sidebar-panel {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    overflow-x: auto;
    padding: 8px;
  }
  .playground-endpoint {
    white-space: nowrap;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   LIGHT MODE OVERRIDES
   ═══════════════════════════════════════════════════════════════════════════════ */
html.light-mode .docs-sidebar {
  background: rgba(248, 248, 250, 0.92);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-right-color: rgba(0,0,0,0.08);
  scrollbar-color: rgba(0,0,0,0.1) transparent;
}
html.light-mode .docs-sidebar::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.1);
}
html.light-mode .docs-sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(0,0,0,0.2);
}
html.light-mode .docs-search-input {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.12);
  color: #18181b;
}
html.light-mode .docs-search-input:focus {
  background: rgba(0,0,0,0.06);
}
html.light-mode .docs-search-input::placeholder {
  color: rgba(0,0,0,0.4);
}
html.light-mode .docs-search-icon {
  color: rgba(0,0,0,0.4);
}
html.light-mode .docs-sidebar-title {
  color: rgba(0,0,0,0.6);
}
html.light-mode .docs-sidebar-link {
  color: rgba(0,0,0,0.65);
}
html.light-mode .docs-sidebar-link:hover {
  color: #18181b;
  background: rgba(0,0,0,0.04);
}
html.light-mode .docs-sidebar-link.active {
  background: rgba(99, 102, 241, 0.06);
}
html.light-mode .docs-sidebar-cta {
  background: rgba(99, 102, 241, 0.04);
  border-color: rgba(99, 102, 241, 0.12);
}
html.light-mode .docs-sidebar-cta div[style*="color:rgba(255,255,255"] {
  color: rgba(0,0,0,0.5) !important;
}
html.light-mode .docs-sidebar-cta div[style*="font-weight:600"] {
  color: #18181b;
}
html.light-mode .docs-breadcrumb {
  color: rgba(0,0,0,0.5);
}
html.light-mode .docs-title {
  color: #18181b;
}
html.light-mode .docs-subtitle {
  color: rgba(0,0,0,0.6);
}
html.light-mode .docs-section h2 {
  color: #18181b;
  border-top-color: rgba(0,0,0,0.08);
}
html.light-mode .docs-section h3 {
  color: #18181b;
}
html.light-mode .docs-section p {
  color: rgba(0,0,0,0.7);
}
html.light-mode .docs-section li {
  color: rgba(0,0,0,0.7);
}
html.light-mode .docs-section strong {
  color: #18181b;
}
html.light-mode .code-block {
  background: #fafafa;
  border-color: rgba(0,0,0,0.1);
}
html.light-mode .code-header {
  background: rgba(0,0,0,0.03);
  border-bottom-color: rgba(0,0,0,0.08);
}
html.light-mode .code-lang {
  color: rgba(0,0,0,0.5);
}
html.light-mode .code-copy {
  background: rgba(0,0,0,0.06);
  color: rgba(0,0,0,0.6);
}
html.light-mode .code-copy:hover {
  background: rgba(0,0,0,0.1);
  color: #18181b;
}
html.light-mode .code-content pre {
  color: #1e1e2e;
}
html.light-mode .code-content .keyword { color: #8b5cf6; }
html.light-mode .code-content .string { color: #16a34a; }
html.light-mode .code-content .comment { color: rgba(0,0,0,0.4); }
html.light-mode .code-content .function { color: #2563eb; }
html.light-mode .code-content .const { color: #db2777; }
html.light-mode .endpoint-card {
  background: rgba(0,0,0,0.02);
  border-color: rgba(0,0,0,0.1);
}
html.light-mode .endpoint-path {
  color: #18181b;
}
html.light-mode .endpoint-desc {
  color: rgba(0,0,0,0.6);
}
html.light-mode .param-table th {
  color: rgba(0,0,0,0.5);
}
html.light-mode .param-table td {
  color: rgba(0,0,0,0.8);
}
html.light-mode .param-table th,
html.light-mode .param-table td {
  border-bottom-color: rgba(0,0,0,0.08);
}
html.light-mode .quickstart-card {
  background: rgba(0,0,0,0.02);
  border-color: rgba(0,0,0,0.1);
}
html.light-mode .quickstart-card:hover {
  background: rgba(0,0,0,0.04);
  border-color: rgba(99, 102, 241, 0.3);
}
html.light-mode .quickstart-title {
  color: #18181b;
}
html.light-mode .quickstart-desc {
  color: rgba(0,0,0,0.5);
}
html.light-mode .info-box-content {
  color: rgba(0,0,0,0.8);
}
html.light-mode .playground-container {
  background: rgba(0,0,0,0.02);
  border-color: rgba(0,0,0,0.1);
}
html.light-mode .playground-sidebar-panel {
  background: rgba(0,0,0,0.03);
  border-right-color: rgba(0,0,0,0.08);
}
html.light-mode .playground-endpoint {
  color: rgba(0,0,0,0.6);
}
html.light-mode .playground-endpoint:hover {
  background: rgba(0,0,0,0.05);
  color: rgba(0,0,0,0.9);
}
html.light-mode .playground-endpoint.active {
  background: rgba(99, 102, 241, 0.08);
}
html.light-mode .playground-url-bar {
  background: rgba(0,0,0,0.03);
  border-color: rgba(0,0,0,0.1);
}
html.light-mode .playground-url {
  color: rgba(0,0,0,0.5);
}
html.light-mode .playground-headers label,
html.light-mode .playground-body-section label {
  color: rgba(0,0,0,0.45);
}
html.light-mode .playground-input {
  background: rgba(0,0,0,0.03);
  border-color: rgba(0,0,0,0.1);
  color: #18181b;
}
html.light-mode .playground-textarea {
  background: rgba(0,0,0,0.03);
  border-color: rgba(0,0,0,0.1);
  color: #18181b;
}
html.light-mode .playground-response-header {
  color: rgba(0,0,0,0.45);
}
html.light-mode .playground-output {
  background: #1e1e2e;
}

