/* docs/docs.css */

/* Basic Layout */
body { margin: 0; font-family: system-ui, sans-serif; background-color: var(--background); color: var(--foreground); }
.docs-layout { display: flex; min-height: 100vh; }

/* Sidebar */
.docs-sidebar {
  width: 260px;
  border-right: 1px solid var(--border);
  padding: 2rem 1.5rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;         /* Added for theme toggle */
  flex-direction: column; /* Added for theme toggle */
}
.docs-sidebar .docs-brand {
  margin-top: 0;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
}
.docs-sidebar .docs-brand a {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
}
.docs-logo-img {
  height: auto;
  display: block;
}
.docs-logo-img--sidebar {
  max-height: 2.25rem;
  width: auto;
}
.docs-logo-img--hero {
  max-height: 4.5rem;
  max-width: min(100%, 22rem);
  width: auto;
}
.docs-hero-logo {
  margin: 0 0 1rem 0;
  line-height: 0;
}
.docs-nav { display: flex; flex-direction: column; gap: 0.25rem; }
.docs-nav a {
  text-decoration: none;
  color: var(--muted-foreground);
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  transition: all 0.2s;
}
.docs-nav a:hover, .docs-nav a.active { color: var(--foreground); background-color: var(--muted); }
.docs-nav-divider {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 0.625rem 0.5rem 0.5rem 0.5rem;
}
.docs-nav-group { margin-top: 1.5rem; margin-bottom: 0.5rem; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted-foreground); padding-left: 0.75rem; font-weight: 600; }

/* Main Content */
.docs-main { flex: 1; padding: 3rem 4rem; max-width: 900px; }
.docs-main--home {
  max-width: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.docs-home-inner {
  width: 100%;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.docs-home-inner .docs-hero-logo img {
  margin-left: auto;
  margin-right: auto;
}
.docs-home-inner .docs-cta-row {
  justify-content: center;
}
.docs-home-inner .docs-feature-grid {
  text-align: left;
}
.docs-home-inner .docs-feature-grid .aero-card-content p {
  text-align: left;
}
.docs-main--centered {
  max-width: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.docs-page-inner {
  width: 100%;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}
.docs-main--centered .docs-page-inner #components > .docs-description {
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border);
}
.docs-title { font-size: 2.25rem; margin-top: 0; margin-bottom: 0.5rem; font-weight: 600; }
.docs-description { color: var(--muted-foreground); font-size: 1.125rem; margin-bottom: 2.5rem; }

/* Preview & Code Tabs */
.component-section { margin-bottom: 4rem; }
.component-section h3 { font-size: 1.5rem; margin-bottom: 0.5rem; border-bottom: none; }
.component-desc { color: var(--muted-foreground); margin-bottom: 1.5rem; font-size: 0.95rem; }

.docs-tabs { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.docs-tab-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted-foreground);
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  transition: all 0.2s;
}
.docs-tab-btn:hover { background: var(--muted); color: var(--foreground); }
.docs-tab-btn.active { background: var(--muted); color: var(--foreground); border-color: var(--border); }

.docs-tab-content { display: none; }
.docs-tab-content.active { display: block; }

/* The boxes holding the rendered components or code */
.docs-preview-box {
  padding: 3rem 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--background);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}
.docs-code-box pre {
  margin: 0;
  padding: 1.5rem;
  background: #1e1e1e; /* Dark theme for code block */
  color: #d4d4d4;
  border-radius: var(--radius);
  overflow-x: auto;
  font-family: monospace;
  font-size: 0.875rem;
  border: 1px solid var(--border);
}