/* Dentistry & Oral Health Laboratory Theme: Dental Enamel & Clinical Cyan Palette */
:root {
  --dent-primary: #0891b2;
  --dent-primary-dark: #0e7490;
  --dent-primary-deep: #155e75;
  --dent-primary-ultra: #083344;
  --dent-accent: #06b6d4;
  --dent-tint: #cffafe;
  --dent-tint-light: #ecfeff;
  --dent-border: #a5f3fc;
  --dent-text: #0f172a;
  --dent-text-muted: #475569;
}

.lab-navigation {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 18px 0 28px;
}
.lab-navigation a {
  font-size: 11px;
  padding: 8px 13px;
  background: var(--dent-tint-light);
  border: 1px solid var(--dent-border);
  border-radius: 4px;
  text-decoration: none;
  color: var(--dent-primary-deep);
  font-weight: 500;
  transition: all 0.15s ease;
}
.lab-navigation a:hover {
  background: var(--dent-tint);
  border-color: var(--dent-primary);
  color: var(--dent-primary-ultra);
}

.new-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  border: 1px solid var(--dent-border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(8, 51, 68, 0.06);
  margin-bottom: 30px;
  background: #ffffff;
}
@media (max-width: 860px) {
  .new-workbench {
    grid-template-columns: 1fr;
  }
}
.new-visual {
  background: #f8fafc;
  padding: 16px;
  border-right: 1px solid var(--dent-border);
  display: flex;
  flex-direction: column;
}
@media (max-width: 860px) {
  .new-visual {
    border-right: none;
    border-bottom: 1px solid var(--dent-border);
  }
}
.visual-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.sim-mode-switcher {
  display: flex;
  background: #e2e8f0;
  border-radius: 6px;
  padding: 2px;
  gap: 2px;
}
.sim-mode-btn {
  font-size: 11px;
  font-weight: 500;
  padding: 5px 10px;
  border: none;
  background: transparent;
  color: #475569;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.15s ease;
}
.sim-mode-btn.active {
  background: #ffffff;
  color: var(--dent-primary-deep);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  font-weight: 600;
}
#visualSvg {
  width: 100%;
  height: auto;
  max-height: 310px;
  background: var(--dent-primary-ultra);
  border-radius: 6px;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.4);
}
.new-meter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
}
.new-meter small {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.new-meter strong {
  font-size: 20px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: var(--dent-primary-deep);
}
.new-controls {
  padding: 20px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.new-controls label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #334155;
}
.new-controls output {
  font-size: 18px;
  font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: var(--dent-primary-dark);
}
.new-controls input[type="range"] {
  width: 100%;
  accent-color: var(--dent-primary);
}
.new-controls input[type="number"] {
  width: 100%;
  padding: 8px 10px;
  font-size: 13px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.lab-control-meta {
  font-size: 11px;
  color: #64748b;
  font-style: italic;
  margin-top: -4px;
}
.new-controls button.primary {
  background: var(--dent-primary-dark);
  color: #ffffff;
  border: none;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.new-controls button.primary:hover {
  background: var(--dent-primary-deep);
}
.new-controls button.secondary {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 5px;
  cursor: pointer;
}
.new-controls button.secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.trial-status {
  font-size: 11px;
  color: #475569;
  margin-top: 4px;
}
.data-notice {
  font-size: 12px;
  line-height: 1.5;
  color: #475569;
  background: var(--dent-tint-light);
  border-left: 3px solid var(--dent-primary);
  padding: 10px 14px;
  margin: 16px 0;
  border-radius: 0 4px 4px 0;
}
.model-note {
  font-size: 12px;
  color: #475569;
  margin-bottom: 24px;
}

/* Apparatus and Method */
.apparatus-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.apparatus-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 14px;
}
.apparatus-item h3 {
  font-size: 13px;
  color: var(--dent-primary-deep);
  margin: 0 0 6px;
}
.apparatus-item p {
  font-size: 12px;
  color: #475569;
  margin: 0;
  line-height: 1.4;
}

.method-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.method-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 14px 18px;
}
.step-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--dent-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.step-body h3 {
  font-size: 13px;
  color: #1e293b;
  margin: 0 0 6px;
}
.step-body p {
  font-size: 12px;
  color: #475569;
  margin: 0;
  line-height: 1.5;
}

/* Results & Notebook */
.lab-result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 18px 0;
}
@media (max-width: 768px) {
  .lab-result-grid {
    grid-template-columns: 1fr;
  }
}
.chart-card, .fit-card, .table-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 16px;
}
#labPlot {
  width: 100%;
  height: auto;
  background: var(--dent-primary-ultra);
  border-radius: 4px;
}
.report-equation {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  padding: 10px 14px;
  background: var(--dent-tint-light);
  border: 1px solid var(--dent-border);
  border-radius: 4px;
  color: var(--dent-primary-deep);
  margin: 12px 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
th, td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}
th {
  background: #f8fafc;
  font-weight: 600;
  color: #334155;
  font-size: 11px;
}

/* Quiz questions */
.quiz-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 14px;
}
.quiz-card h3 {
  font-size: 13px;
  color: #1e293b;
  margin: 0 0 12px;
}
.quiz-card .options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.quiz-option {
  text-align: left;
  padding: 8px 12px;
  font-size: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.15s ease;
}
.quiz-option:hover {
  background: var(--dent-tint-light);
  border-color: var(--dent-primary);
}
.quiz-option.correct {
  background: #dcfce7;
  border-color: #22c55e;
  color: #15803d;
  font-weight: 600;
}
.quiz-option.incorrect {
  background: #fee2e2;
  border-color: #ef4444;
  color: #b91c1c;
}
.quiz-feedback {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.4;
  color: #475569;
  background: #f8fafc;
  padding: 8px 12px;
  border-radius: 4px;
}

/* Theory & Report articles */
.theory-article, .report-article {
  max-width: 820px;
  margin: 0 auto;
  line-height: 1.6;
  font-size: 13px;
  color: #334155;
}
.theory-article h2, .report-article h2 {
  font-size: 20px;
  color: #0f172a;
  margin-top: 24px;
}
.theory-article h3, .report-article h3 {
  font-size: 15px;
  color: var(--dent-primary-deep);
  margin-top: 20px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 6px;
}
.report-graph {
  width: 100%;
  height: auto;
  margin: 16px 0;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.btn-download {
  display: inline-block;
  padding: 8px 14px;
  background: var(--dent-primary-dark);
  color: #ffffff;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  margin: 14px 0 20px;
}
.btn-download:hover {
  background: var(--dent-primary-deep);
}
