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

.status-done { background-color: #dcfce7; color: #166534; }
.status-in_progress { background-color: #fef9c3; color: #854d0e; }
.status-blocked { background-color: #fee2e2; color: #991b1b; }
.status-draft { background-color: #f3f4f6; color: #4b5563; }
.status-todo { background-color: #dbeafe; color: #1e40af; }
.status-deprecated { background-color: #f3e8ff; color: #6b21a8; }

/* Dark mode badge variants */
.dark .status-done { background-color: rgba(22, 163, 74, 0.15); color: #4ade80; }
.dark .status-in_progress { background-color: rgba(234, 179, 8, 0.15); color: #facc15; }
.dark .status-blocked { background-color: rgba(239, 68, 68, 0.15); color: #f87171; }
.dark .status-draft { background-color: rgba(100, 116, 139, 0.15); color: #94a3b8; }
.dark .status-todo { background-color: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.dark .status-deprecated { background-color: rgba(168, 85, 247, 0.15); color: #c084fc; }

/* Search highlight */
mark {
  background-color: #fef08a;
  color: #854d0e;
  padding: 0 0.125rem;
  border-radius: 0.125rem;
}

.dark mark {
  background-color: rgba(250, 204, 21, 0.2);
  color: #fde047;
}

/* HTMX loading indicator */
.htmx-indicator { display: none; }
.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator { display: inline-block; }

/* Spec content sections */
.spec-section .prose {
  font-size: 0.875rem;
  line-height: 1.5;
}

.spec-section .prose p {
  margin-bottom: 0.5rem;
}

.spec-section .prose ul,
.spec-section .prose ol {
  margin-left: 1.5rem;
  margin-bottom: 0.5rem;
}

.spec-section .prose code {
  background-color: #f3f4f6;
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
  font-size: 0.8125rem;
}

.spec-section .prose pre {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.375rem;
  padding: 0.75rem 1rem;
  overflow-x: auto;
  margin-bottom: 0.75rem;
}

.spec-section .prose pre code {
  background-color: transparent;
  padding: 0;
  border-radius: 0;
  font-size: 0.8125rem;
  color: #334155;
}

.dark .spec-section .prose code {
  background-color: #1e293b;
  color: #e2e8f0;
}

.dark .spec-section .prose pre {
  background-color: #0f172a;
  border-color: #1e293b;
}

.dark .spec-section .prose pre code {
  background-color: transparent;
  color: #cbd5e1;
}
