/* ═══════════════════════════════════════════════════════════════
   CLINICAL LIBRARY (NeoGuide) STYLES
   ═══════════════════════════════════════════════════════════════ */

/* ── Page Layout ───────────────────────────────────────────── */
.library-page {
  font-family: var(--font-sans, 'Plus Jakarta Sans', system-ui, sans-serif);
  background: #fff;
  color: #0f172a;
  min-height: 100vh;
  padding-top: 64px; /* header height */
}

.library-layout {
  display: flex;
  min-height: calc(100vh - 64px);
}

/* ── Sidebar ───────────────────────────────────────────────── */
.library-sidebar {
  width: 288px;
  min-width: 288px;
  border-right: 1px solid #e2e8f0;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sidebar-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #2563eb;
}

.sidebar-title {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #1e293b;
  margin: 0;
}

.sidebar-nav {
  flex: 1;
  padding: 1rem 0.75rem;
  overflow-y: auto;
}

.sidebar-section-title {
  padding: 0.5rem 0.75rem;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin-bottom: 0.25rem;
}

.category-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.125rem;
  border-radius: 0.375rem;
  border: none;
  background: transparent;
  font-size: 0.875rem;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
}

.category-btn:hover {
  background: #f1f5f9;
}

.category-btn.active {
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 600;
}

.category-btn.active .cat-count {
  background: #dbeafe;
  color: #2563eb;
}

.cat-name {
  flex: 1;
}

.cat-count {
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  font-size: 0.625rem;
  font-weight: 700;
  background: #e2e8f0;
  color: #64748b;
}

.sidebar-footer {
  padding: 1rem;
  border-top: 1px solid #e2e8f0;
  margin-top: auto;
}

.sidebar-about-btn {
  background: none;
  border: none;
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s;
}

.sidebar-about-btn:hover {
  color: #2563eb;
}

/* ── Main Area ─────────────────────────────────────────────── */
.library-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
}

.library-header {
  height: 64px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  background: #fff;
  flex-shrink: 0;
  gap: 1rem;
}

.library-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.breadcrumb-sep {
  color: #cbd5e1;
}

.breadcrumb-active {
  color: #0f172a;
  font-weight: 600;
}

.library-search {
  position: relative;
  width: 320px;
  max-width: 100%;
  flex-shrink: 0;
}

.library-search input {
  width: 100%;
  padding: 0.5rem 0.75rem 0.5rem 2.25rem;
  background: #f1f5f9;
  border: none;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: #0f172a;
  outline: none;
  transition: box-shadow 0.15s;
}

.library-search input:focus {
  box-shadow: 0 0 0 2px #3b82f6;
}

.library-search input::placeholder {
  color: #94a3b8;
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #94a3b8;
  pointer-events: none;
}

/* ── Content Area ──────────────────────────────────────────── */
.library-content {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
}

.guidelines-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.guidelines-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1e293b;
  letter-spacing: -0.02em;
}

.guidelines-count {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #94a3b8;
}

.guidelines-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-bottom: 3rem;
}

.guideline-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.guideline-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.guideline-card-main {
  flex: 1;
  min-width: 0;
}

.guideline-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 0.25rem;
  transition: color 0.15s;
}

.guideline-card:hover .guideline-card-title {
  color: #1d4ed8;
}

.guideline-card-meta {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: #94a3b8;
}

.guideline-card-meta svg {
  width: 14px;
  height: 14px;
}

.guideline-start-btn {
  padding: 0.5rem 1rem;
  background: #0f172a;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}

.guideline-card:hover .guideline-start-btn {
  background: #2563eb;
}

.empty-state {
  padding: 3rem 1rem;
  text-align: center;
  color: #64748b;
  font-size: 0.95rem;
}

/* ── Wizard ────────────────────────────────────────────────── */
.wizard-container {
  max-width: 768px;
  margin: 0 auto;
  padding-bottom: 3rem;
}

.wizard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.wizard-back {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  color: #64748b;
  cursor: pointer;
  transition: color 0.15s;
}

.wizard-back:hover {
  color: #0f172a;
}

.wizard-back svg {
  width: 16px;
  height: 16px;
}

.wizard-refs-btn {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #2563eb;
  border-bottom: 2px solid #2563eb;
  padding-bottom: 0.25rem;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  cursor: pointer;
}

.wizard-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 1.5rem;
  letter-spacing: -0.02em;
}

.wizard-step-bar {
  margin-bottom: 1rem;
}

.wizard-step-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
}

.wizard-step-name {
  color: #2563eb;
}

.wizard-step-panel {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1.5rem;
}

.wizard-step-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 1rem;
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.checklist-item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  cursor: pointer;
  transition: all 0.15s ease;
}

.checklist-item:hover {
  border-color: #cbd5e1;
}

.checklist-item.selected {
  background: #eff6ff;
  border-color: #93c5fd;
}

.checklist-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.checklist-box {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 0.375rem;
  border: 1.5px solid #cbd5e1;
  background: #fff;
  display: grid;
  place-items: center;
  margin-top: 1px;
  transition: all 0.15s;
}

.checklist-item.selected .checklist-box {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

.checklist-box svg {
  width: 12px;
  height: 12px;
}

.checklist-text {
  font-size: 0.875rem;
  color: #334155;
  line-height: 1.5;
  flex: 1;
}

.checklist-item.selected .checklist-text {
  color: #1e3a8a;
  font-weight: 500;
}

.flowchart-label {
  font-style: italic;
  color: #64748b;
}

/* Flowchart */
.flowchart-container {
  margin-top: 0.25rem;
  padding-left: 2rem;
  width: 100%;
}

.flowchart-title {
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.75rem;
  text-align: center;
  font-size: 0.875rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.flowchart-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 1024px) {
  .flowchart-body {
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
  }
}

.flowchart-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  border-radius: 0.5rem;
  border: 2px solid;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  text-align: center;
  width: 100%;
  max-width: 280px;
}

@media (min-width: 1024px) {
  .flowchart-node {
    width: auto;
    min-width: 140px;
    max-width: 220px;
  }
}

.flowchart-node-type {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
  opacity: 0.8;
}

.flowchart-node-type svg {
  width: 14px;
  height: 14px;
}

.flowchart-node-content {
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.3;
}

.flowchart-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  color: #94a3b8;
  flex-shrink: 0;
}

.flowchart-arrow svg {
  width: 20px;
  height: 20px;
}

.arrow-desktop { display: none; }
.arrow-mobile { display: block; }

@media (min-width: 1024px) {
  .arrow-desktop { display: block; }
  .arrow-mobile { display: none; }
}

.flowchart-fallback {
  font-size: 0.875rem;
  border-left: 4px solid #3b82f6;
  padding: 0.5rem 0 0.5rem 1rem;
  color: #334155;
}

/* Node colors */
.node-start { background: #d1fae5; border-color: #10b981; color: #065f46; }
.node-decision { background: #fef3c7; border-color: #f59e0b; color: #92400e; }
.node-yesno { background: #f1f5f9; border-color: #94a3b8; color: #334155; }
.node-action { background: #dbeafe; border-color: #3b82f6; color: #1e40af; }
.node-goal { background: #e9d5ff; border-color: #a855f7; color: #6b21a8; }
.node-pharma { background: #c7d2fe; border-color: #6366f1; color: #3730a3; }
.node-default { background: #f8fafc; border-color: #cbd5e1; color: #1e293b; }

/* Wizard nav */
.wizard-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 1.5rem;
}

.wizard-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  border: none;
}

.wizard-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.wizard-btn-primary {
  background: #2563eb;
  color: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.wizard-btn-primary:hover:not(:disabled) {
  background: #1d4ed8;
}

.wizard-btn-secondary {
  background: transparent;
  color: #475569;
}

.wizard-btn-secondary:hover:not(:disabled) {
  color: #0f172a;
}

/* ── Summary ───────────────────────────────────────────────── */
.summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.summary-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.summary-title svg {
  width: 24px;
  height: 24px;
  color: #22c55e;
}

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

.summary-action-btn {
  width: 36px;
  height: 36px;
  border-radius: 0.5rem;
  border: none;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.15s;
}

.summary-action-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.summary-action-btn svg {
  width: 20px;
  height: 20px;
}

.summary-body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.summary-section-title {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin-bottom: 0.5rem;
}

.summary-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.summary-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #1e293b;
  line-height: 1.5;
}

.summary-bullet {
  color: #3b82f6;
  font-weight: 700;
  margin-top: -1px;
}

.summary-reminder {
  display: flex;
  gap: 0.75rem;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 0.75rem;
  padding: 1rem;
  color: #92400e;
  margin-top: 2rem;
}

.summary-reminder svg {
  width: 20px;
  height: 20px;
  color: #f59e0b;
  flex-shrink: 0;
  margin-top: 2px;
}

.summary-reminder h5 {
  font-weight: 700;
  font-size: 0.875rem;
  margin: 0 0 0.25rem;
}

.summary-reminder p {
  font-size: 0.75rem;
  opacity: 0.9;
  margin: 0;
  line-height: 1.5;
}

/* ── Modals ────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.5);
  padding: 1rem;
}

.modal-panel {
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
  max-width: 512px;
  width: 100%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e2e8f0;
}

.modal-header h3 {
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  font-size: 1rem;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 0.375rem;
  border: none;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.15s;
}

.modal-close:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.modal-close svg {
  width: 18px;
  height: 18px;
}

.modal-body {
  padding: 1.25rem;
  overflow-y: auto;
}

.modal-body p {
  font-size: 0.875rem;
  color: #475569;
  line-height: 1.6;
  margin: 0 0 0.75rem;
}

.modal-alert {
  display: flex;
  gap: 0.75rem;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: 0.5rem;
  padding: 0.875rem;
  color: #92400e;
  font-size: 0.875rem;
  line-height: 1.5;
  margin-top: 0.5rem;
}

.modal-alert svg {
  width: 20px;
  height: 20px;
  color: #f59e0b;
  flex-shrink: 0;
  margin-top: 2px;
}

.modal-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
  display: flex;
  justify-content: flex-end;
}

.modal-btn {
  padding: 0.5rem 1rem;
  background: #e2e8f0;
  color: #334155;
  font-size: 0.875rem;
  font-weight: 700;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.15s;
}

.modal-btn:hover {
  background: #cbd5e1;
}

.modal-btn-secondary {
  background: #e2e8f0;
  color: #334155;
}

.references-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.references-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #475569;
  line-height: 1.5;
}

.ref-num {
  color: #cbd5e1;
  font-weight: 700;
  flex-shrink: 0;
}

/* ── Print ─────────────────────────────────────────────────── */
@media print {
  .library-sidebar,
  .library-header,
  .wizard-header,
  .wizard-nav,
  .summary-actions,
  .modal-overlay,
  .header,
  .bottom-tab-bar,
  .footer,
  .donate-wrapper,
  .guideline-start-btn {
    display: none !important;
  }

  .library-main {
    width: 100% !important;
    margin: 0 !important;
  }

  .library-content {
    padding: 0 !important;
  }

  .wizard-container {
    max-width: 100% !important;
  }

  .wizard-step-panel,
  .checklist-item {
    border: 1px solid #cbd5e1 !important;
    background: #fff !important;
  }

  body {
    background: #fff !important;
    color: #000 !important;
  }
}

/* ── Mobile Category Dropdown ────────────────────────────── */
.mobile-category-bar {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.mobile-category-bar label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
  white-space: nowrap;
}

.mobile-category-bar select {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  background: #fff;
  font-size: 0.875rem;
  color: #0f172a;
  outline: none;
  -webkit-appearance: menulist;
  appearance: menulist;
}

.mobile-category-bar select:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59,130,246,0.2);
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .library-page {
    padding-top: 64px;
  }

  .library-layout {
    flex-direction: column;
    min-height: auto;
  }

  .library-sidebar {
    display: none;
  }

  .mobile-category-bar {
    display: flex;
  }

  .library-main {
    width: 100%;
    min-width: 0;
  }

  .library-header {
    padding: 0.5rem 1rem;
    flex-wrap: wrap;
    height: auto;
    min-height: 56px;
    gap: 0.5rem;
  }

  .library-search {
    width: 100%;
  }

  .library-content {
    padding: 1rem;
  }

  .guideline-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .guideline-start-btn {
    width: 100%;
    text-align: center;
  }

  .wizard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .flowchart-node {
    max-width: 100%;
  }

  .wizard-nav {
    flex-direction: column;
    gap: 0.5rem;
  }

  .wizard-btn {
    width: 100%;
    text-align: center;
  }

  .summary-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

/* ── Dark Theme ────────────────────────────────────────────── */
[data-theme="dark"] .library-page {
  background: #0f172a;
  color: #f8fafc;
}

[data-theme="dark"] .library-sidebar {
  background: #1e293b;
  border-color: #334155;
}

[data-theme="dark"] .mobile-category-bar {
  background: #1e293b;
  border-color: #334155;
}

[data-theme="dark"] .mobile-category-bar label {
  color: #cbd5e1;
}

[data-theme="dark"] .mobile-category-bar select {
  background: #0f172a;
  border-color: #334155;
  color: #f1f5f9;
}

[data-theme="dark"] .sidebar-header,
[data-theme="dark"] .sidebar-footer {
  border-color: #334155;
}

[data-theme="dark"] .sidebar-title {
  color: #f1f5f9;
}

[data-theme="dark"] .category-btn {
  color: #94a3b8;
}

[data-theme="dark"] .category-btn:hover {
  background: #334155;
}

[data-theme="dark"] .category-btn.active {
  background: #1e3a8a;
  color: #93c5fd;
}

[data-theme="dark"] .category-btn.active .cat-count {
  background: #1e40af;
  color: #93c5fd;
}

[data-theme="dark"] .cat-count {
  background: #334155;
  color: #94a3b8;
}

[data-theme="dark"] .sidebar-about-btn {
  color: #94a3b8;
}

[data-theme="dark"] .sidebar-about-btn:hover {
  color: #60a5fa;
}

[data-theme="dark"] .library-main {
  background: #0f172a;
}

[data-theme="dark"] .library-header {
  background: #0f172a;
  border-color: #334155;
}

[data-theme="dark"] .library-breadcrumb {
  color: #94a3b8;
}

[data-theme="dark"] .breadcrumb-active {
  color: #f1f5f9;
}

[data-theme="dark"] .library-search input {
  background: #1e293b;
  color: #f1f5f9;
}

[data-theme="dark"] .library-search input::placeholder {
  color: #64748b;
}

[data-theme="dark"] .guidelines-title {
  color: #f1f5f9;
}

[data-theme="dark"] .guideline-card {
  background: #1e293b;
  border-color: #334155;
}

[data-theme="dark"] .guideline-card:hover {
  border-color: #3b82f6;
}

[data-theme="dark"] .guideline-card-title {
  color: #f1f5f9;
}

[data-theme="dark"] .guideline-card:hover .guideline-card-title {
  color: #60a5fa;
}

[data-theme="dark"] .guideline-start-btn {
  background: #f1f5f9;
  color: #0f172a;
}

[data-theme="dark"] .guideline-card:hover .guideline-start-btn {
  background: #3b82f6;
  color: #fff;
}

[data-theme="dark"] .wizard-title {
  color: #f1f5f9;
}

[data-theme="dark"] .wizard-step-panel {
  background: #1e293b;
  border-color: #334155;
}

[data-theme="dark"] .wizard-step-title {
  color: #f1f5f9;
}

[data-theme="dark"] .checklist-item {
  background: #0f172a;
  border-color: #334155;
}

[data-theme="dark"] .checklist-item:hover {
  border-color: #475569;
}

[data-theme="dark"] .checklist-item.selected {
  background: #1e3a8a;
  border-color: #3b82f6;
}

[data-theme="dark"] .checklist-text {
  color: #cbd5e1;
}

[data-theme="dark"] .checklist-item.selected .checklist-text {
  color: #bfdbfe;
}

[data-theme="dark"] .checklist-box {
  background: #0f172a;
  border-color: #475569;
}

[data-theme="dark"] .flowchart-title {
  color: #f1f5f9;
  border-color: #334155;
}

[data-theme="dark"] .summary-title {
  color: #f1f5f9;
}

[data-theme="dark"] .summary-list li {
  color: #f1f5f9;
}

[data-theme="dark"] .wizard-btn-secondary {
  color: #cbd5e1;
}

[data-theme="dark"] .wizard-btn-secondary:hover {
  color: #f1f5f9;
}

[data-theme="dark"] .modal-panel {
  background: #1e293b;
}

[data-theme="dark"] .modal-header {
  border-color: #334155;
}

[data-theme="dark"] .modal-header h3 {
  color: #f1f5f9;
}

[data-theme="dark"] .modal-body p {
  color: #cbd5e1;
}

[data-theme="dark"] .modal-footer {
  background: #1e293b;
  border-color: #334155;
}

[data-theme="dark"] .modal-btn {
  background: #334155;
  color: #e2e8f0;
}

[data-theme="dark"] .modal-btn:hover {
  background: #475569;
}

[data-theme="dark"] .references-list li {
  color: #cbd5e1;
}

[data-theme="dark"] .empty-state {
  color: #94a3b8;
}
