/* Documentation styles */
body {
  background: #f8f9fa;
}

.docs-header {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
  padding: 3rem 0;
  margin-bottom: 3rem;
}

.docs-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* Sidebar */
.docs-sidebar {
  position: sticky;
  top: 1rem;
  height: fit-content;
}

.docs-nav {
  background: white;
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.docs-nav h3 {
  margin: 0 0 1rem 0;
  font-size: 0.875rem;
  text-transform: uppercase;
  color: #6c757d;
}

.docs-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.docs-nav li {
  margin: 0.25rem 0;
}

.docs-nav a {
  display: block;
  padding: 0.5rem;
  color: #495057;
  text-decoration: none;
  border-radius: 0.25rem;
  transition: all 0.2s ease;
}

.docs-nav a:hover,
.docs-nav a.aiab-active {
  background: #f8f9fa;
  color: var(--color-primary);
}

/* Content */
.docs-content section {
  background: white;
  border-radius: 0.5rem;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.docs-content h2 {
  color: #2c3e50;
  border-bottom: 2px solid #e9ecef;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

.docs-content h3 {
  color: #495057;
  margin: 2rem 0 1rem 0;
}

/* Code examples */
.code-example {
  border: 1px solid #e9ecef;
  border-radius: 0.5rem;
  margin: 1.5rem 0;
}

.code-example-header {
  background: #f8f9fa;
  padding: 1rem;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.code-example-title {
  font-weight: 600;
  color: #2c3e50;
}

.code-example-actions {
  display: flex;
  gap: 0.5rem;
}

.code-example-action {
  padding: 0.25rem 0.5rem;
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.code-example-action:hover {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.code-example-preview {
  padding: 2rem;
  background: white;
}

.code-example-code {
  padding: 1.5rem;
  background: #2c3e50;
  color: #ecf0f1;
  overflow-x: auto;
  display: none;
}

.code-example-code.show {
  display: block;
}

.code-example-code pre {
  margin: 0;
  font-family: "Monaco", "Menlo", monospace;
  font-size: 0.875rem;
}

/* Button preview aiab-grid */
.button-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

/* Properties table */
.props-table {
  width: 100%;
  margin: 1.5rem 0;
}

.props-table th,
.props-table td {
  text-align: left;
  padding: 0.75rem;
  border-bottom: 1px solid #e9ecef;
}

.props-table th {
  background: #f8f9fa;
  font-weight: 600;
  color: #495057;
}

.props-table code {
  background: #f8f9fa;
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  color: #e83e8c;
}

/* Responsive */
@media (max-width: 768px) {
  .docs-layout {
    grid-template-columns: 1fr;
  }

  .docs-sidebar {
    position: relative;
  }
}
