/* UI component previews embedded in docs */
.ui-preview {
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  background: var(--md-default-bg-color);
}

.ui-preview-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--md-default-fg-color--light);
  margin-bottom: 1rem;
}

/* Simulated app chrome */
.app-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #4f46e5;
  border-radius: 6px 6px 0 0;
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
}

.app-body {
  border: 1px solid #e5e7eb;
  border-top: none;
  border-radius: 0 0 6px 6px;
  padding: 1.25rem;
  background: #f9fafb;
}

/* Simulated form fields */
.sim-field {
  margin-bottom: 1rem;
}

.sim-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.25rem;
}

.sim-input {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: white;
  font-size: 0.875rem;
  color: #111827;
  box-sizing: border-box;
}

.sim-input.placeholder {
  color: #9ca3af;
}

/* Simulated buttons */
.sim-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: default;
  border: none;
}

.sim-btn-primary {
  background: #4f46e5;
  color: white;
}

.sim-btn-secondary {
  background: white;
  color: #374151;
  border: 1px solid #d1d5db;
}

/* Simulated badges */
.sim-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.sim-badge-green  { background: #d1fae5; color: #065f46; }
.sim-badge-yellow { background: #fef3c7; color: #92400e; }
.sim-badge-blue   { background: #dbeafe; color: #1e40af; }
.sim-badge-gray   { background: #f3f4f6; color: #374151; }
.sim-badge-red    { background: #fee2e2; color: #991b1b; }

/* Kanban card */
.kanban-board {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.kanban-col {
  min-width: 200px;
  flex-shrink: 0;
}

.kanban-col-header {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
  margin-bottom: 0.5rem;
  padding: 0 0.5rem;
}

.kanban-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  font-size: 0.8125rem;
}

.kanban-card-title {
  font-weight: 500;
  color: #111827;
  margin-bottom: 0.25rem;
}

.kanban-card-meta {
  font-size: 0.75rem;
  color: #9ca3af;
}

/* Simulated table */
.sim-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.sim-table th {
  text-align: left;
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
  border-bottom: 1px solid #e5e7eb;
}

.sim-table td {
  padding: 0.625rem 0.75rem;
  color: #374151;
  border-bottom: 1px solid #f3f4f6;
}
