/* Prism.js - themes are now loaded dynamically via prism_theme_controller */

/* Checkbox styling for runbook checklists */
#runbook-content input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 1rem;
  height: 1rem;
  border: 2px solid #d1d5db;
  border-radius: 0.25rem;
  background-color: white;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}

.dark #runbook-content input[type="checkbox"] {
  border-color: #4b5563;
  background-color: #1f2937;
}

#runbook-content input[type="checkbox"]:checked {
  background-color: #ea580c;
  border-color: #ea580c;
}

#runbook-content input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

#runbook-content input[type="checkbox"]:focus {
  outline: none;
  ring: 2px;
  ring-color: #ea580c;
  ring-offset: 2px;
}

/* Heading styles for runbook content */
#runbook-content h1 {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 2.5rem;
  color: #111827;
}

.dark #runbook-content h1 {
  color: #f9fafb;
}

#runbook-content h2 {
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 2.25rem;
  color: #111827;
}

.dark #runbook-content h2 {
  color: #f9fafb;
}

#runbook-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 2rem;
  color: #111827;
}

.dark #runbook-content h3 {
  color: #f9fafb;
}

#runbook-content h4 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.75rem;
  color: #111827;
}

.dark #runbook-content h4 {
  color: #f9fafb;
}

#runbook-content h5 {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.75rem;
  color: #374151;
}

.dark #runbook-content h5 {
  color: #e5e7eb;
}

#runbook-content h6 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5rem;
  color: #374151;
}

.dark #runbook-content h6 {
  color: #e5e7eb;
}

/* Code block spacing */
#runbook-content pre[class*="language-"] {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Base text color for paragraphs and general content */
#runbook-content p {
  color: #111827;
}

.dark #runbook-content p {
  color: #e5e7eb;
}

/* Links */
#runbook-content a {
  color: #ea580c;
  text-decoration: underline;
}

.dark #runbook-content a {
  color: #fb923c;
}

#runbook-content a:hover {
  color: #c2410c;
}

.dark #runbook-content a:hover {
  color: #fdba74;
}

/* Button links should not be underlined and have white text */
#runbook-content a.inline-flex {
  text-decoration: none !important;
  color: white !important;
}

.dark #runbook-content a.inline-flex {
  color: white !important;
}

/* Lists */
#runbook-content ul,
#runbook-content ol {
  color: #111827;
}

.dark #runbook-content ul,
.dark #runbook-content ol {
  color: #e5e7eb;
}

#runbook-content li {
  color: #111827;
}

.dark #runbook-content li {
  color: #e5e7eb;
}

/* Blockquotes */
#runbook-content blockquote {
  color: #374151;
}

.dark #runbook-content blockquote {
  color: #d1d5db;
}

/* Strong and emphasis */
#runbook-content strong {
  color: #111827;
}

.dark #runbook-content strong {
  color: #f9fafb;
}

#runbook-content em {
  color: #374151;
}

.dark #runbook-content em {
  color: #d1d5db;
}

/* Code (inline) */
#runbook-content code:not([class*="language-"]) {
  background-color: #f3f4f6;
  color: #111827;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
}

.dark #runbook-content code:not([class*="language-"]) {
  background-color: #374151;
  color: #e5e7eb;
}

/* Tables */
#runbook-content table {
  color: #111827;
}

.dark #runbook-content table {
  color: #e5e7eb;
}

#runbook-content th {
  background-color: #f9fafb;
  color: #111827;
}

.dark #runbook-content th {
  background-color: #1f2937;
  color: #f9fafb;
}

#runbook-content td {
  background-color: #ffffff;
  color: #374151;
}

.dark #runbook-content td {
  background-color: #111827;
  color: #d1d5db;
}
