/*
   nFlow — Academic Statistical Power Calculator
   Design: Clean dark/light, academically credible
*/

/* ── Dark theme (default) ── */
:root {
  --bg:          #0b0f18;
  --surface:     #111827;
  --surface-alt: #0f1622;
  --border:      #1e2d42;
  --border-mid:  #253348;

  --text:        #dce8f5;
  --text-muted:  #8fa0b8;
  --text-dim:    #3d5270;

  --accent:      #2dd4bf;
  --accent-dark: #0d9488;
  --accent-bg:   rgba(45, 212, 191, 0.08);
  --accent-ring: rgba(45, 212, 191, 0.22);

  --danger:      #f87171;
  --success:     #34d399;

  --radius:      6px;
  --radius-md:   8px;

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;

  --shadow:    0 1px 4px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);

  /* Aliases para componentes legado/específicos */
  --primary:      var(--accent);
  --border-color: var(--border);

  /* Aliases para o modal XY Plot (bg-card + text-color indefinidos no HTML) */
  --bg-card:      var(--surface);
  --text-color:   var(--text);
}

/* ── Light theme ── */
:root.light {
  --bg:          #f4f6f9;
  --surface:     #ffffff;
  --surface-alt: #f0f3f7;
  --border:      #d8e0ec;
  --border-mid:  #c2cfe0;

  --text:        #1a2540;
  --text-muted:  #4d607a;
  --text-dim:    #9aadc4;

  --accent:      #0d9488;
  --accent-dark: #0f766e;
  --accent-bg:   rgba(13, 148, 136, 0.08);
  --accent-ring: rgba(13, 148, 136, 0.2);

  --shadow:    0 1px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);

  /* Aliases para componentes legado/específicos */
  --primary:      var(--accent);
  --border-color: var(--border);

  /* Aliases para o modal XY Plot (light mode) */
  --bg-card:      var(--surface);
  --text-color:   var(--text);
}

/* ── Reset ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background 0.2s, color 0.2s;
}

/* ── Typography ── */
h1 { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; }
h2 {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
h3 { font-size: 0.875rem; font-weight: 600; color: var(--text); }
p  { margin-bottom: 0.75rem; }

/* ── Topbar ── */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  height: 52px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 0.2s, border-color 0.2s;
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.topbar-center { display: none; }

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 26px;
  height: 26px;
  background: var(--accent-bg);
  border: 1px solid rgba(45, 212, 191, 0.3);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

:root.light .logo-mark {
  border-color: rgba(13, 148, 136, 0.3);
}

.app-logo { display: none; } /* replaced by .logo-mark */

.logo-container h1 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.topbar-divider {
  width: 1px;
  height: 18px;
  background: var(--border-mid);
  margin: 0 2px;
}

.topbar-subtitle {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* ── Language Switch ── */
.lang-switch {
  display: flex;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2px;
  gap: 2px;
}

.lang-btn {
  background: none;
  border: none;
  padding: 3px 7px;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0.45;
  transition: opacity 0.15s;
  font-size: 0.82rem;
}

.lang-btn.active {
  opacity: 1;
  background: var(--border-mid);
}

/* ── Theme Toggle ── */
.theme-toggle {
  display: flex;
  align-items: center;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px;
  gap: 2px;
  cursor: pointer;
}

.theme-opt {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 22px;
  border-radius: 16px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--text-dim);
  transition: background 0.15s, color 0.15s;
}

.theme-opt.active {
  background: var(--surface);
  color: var(--text-muted);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

:root.light .theme-opt.active {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

/* ── Buttons ── */
.btn-icon-text {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.38rem 0.75rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  transition: color 0.15s, border-color 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-icon-text:hover {
  color: var(--text);
  border-color: var(--border-mid);
}

.btn-primary {
  width: 100%;
  padding: 0.65rem 1rem;
  background: var(--accent);
  color: #071115;
  font-weight: 700;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.15s;
  letter-spacing: 0.01em;
}

.btn-primary:hover   { filter: brightness(1.08); }
.btn-primary:active  { background: var(--accent-dark); filter: none; }

.btn-outline {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-sans);
}

.btn-outline:hover:not(:disabled) {
  color: var(--text);
  border-color: var(--border-mid);
}

.btn-text-small {
  background: transparent;
  border: none;
  font-size: 0.78rem;
  color: var(--text-dim);
  cursor: pointer;
  font-weight: 500;
  transition: color 0.15s;
  font-family: var(--font-sans);
}

.btn-text-small:hover { color: var(--text-muted); }

.btn-secondary {
  background: var(--surface-alt);
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius);
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-family: var(--font-sans);
}

.btn-secondary:hover { color: var(--text); }

/* ── Layout ── */
.app-layout {
  display: grid;
  grid-template-columns: 256px 1fr 320px;
  gap: 20px;
  padding: 20px 24px;
  max-width: 1560px;
  margin: 0 auto;
  align-items: start;
}

/* ── Sidebar ── */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 72px;
}

.sidebar-footer {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.6;
}

/* ── Cards ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 0;
  transition: background 0.2s, border-color 0.2s;
}

.main-content .card:not(:last-child),
.right-panel .card:not(:last-child) {
    margin-bottom: 24px;
}

.top-box {
  display: flex;
  flex-direction: column;
}

.card-header {
  padding: 13px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-header.border-bottom {
  border-bottom: 1px solid var(--border);
}

.card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tag-svg {
  font-size: 0.72rem;
  color: var(--text-muted);
  background: var(--surface-alt);
  padding: 3px 7px;
  border-radius: 4px;
  font-weight: 600;
  border: 1px solid var(--border);
}

/* ── Form Elements ── */
.form-group { margin-bottom: 1rem; }

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
}

.modern-select,
.form-group input {
  width: 100%;
  padding: 8px 12px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  outline: none;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: none;
}

.modern-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236a7d9a' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.modern-select:focus,
.form-group input:focus {
  border-color: var(--accent-dark);
  box-shadow: 0 0 0 3px var(--accent-ring);
}

.modern-select option { background-color: #1a2438; color: var(--text); }
:root.light .modern-select option { background-color: #ffffff; color: var(--text); }

.segmented-control {
  width: auto;
  padding: 6px 10px;
  border-radius: var(--radius);
  background-color: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.segmented-control:focus {
  border-color: var(--accent-dark);
  box-shadow: 0 0 0 3px var(--accent-ring);
}

/* Estilização interna das opções (Dropdown aberto) */
.segmented-control option { background-color: #1a2438; color: var(--text); }
:root.light .segmented-control option { background-color: #ffffff; color: var(--text); }

.dynamic-inputs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.row { display: flex; align-items: center; gap: 12px; }
.row label { margin-bottom: 0; white-space: nowrap; }

.input-error {
  border-color: var(--danger) !important;
  box-shadow: 0 0 0 1px var(--danger) !important;
}

.error-msg {
  display: block;
  font-size: 0.75rem;
  color: var(--danger);
  margin-top: 4px;
  font-weight: 500;
}

/* ── Results ── */
.viz-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  align-items: stretch;
}

.numeric-results {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-right: 1px solid var(--border);
  padding-right: 20px;
}

.primary-result { display: flex; flex-direction: column; gap: 6px; }

.primary-result .label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.huge-number {
  font-family: var(--font-mono);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -2px;
}

.secondary-outputs { display: flex; flex-direction: column; gap: 8px; }

.output-item {
  display: flex;
  flex-direction: column;
  padding: 9px 12px;
  background: var(--surface-alt);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.output-item .label {
  font-size: 0.68rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.output-item .value {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

/* ── Chart ── */
.chart-container {
  position: relative;
  width: 100%;
  min-height: 240px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-alt);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 12px;
}

canvas { width: 100% !important; height: auto !important; }

.chart-placeholder {
  position: absolute;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.8rem;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-mid);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 8px;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Right Panel ── */
.narrative-subtitle {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 10px;
  font-style: italic;
}

.narrative-box {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  min-height: 130px;
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.75;
  text-align: justify;
  -webkit-hyphens: auto;
  hyphens: auto;
}

.placeholder-text { color: var(--text-dim); font-style: italic; }

.export-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.protocol-area {
  width: 100%;
  height: 200px;
  border: none;
  resize: none;
  padding: 14px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  line-height: 1.75;
  /* Proteção de layout inteligente e Separação Silábica */
  white-space: pre-wrap;
  word-break: normal;
  overflow-wrap: anywhere;
  -webkit-hyphens: auto;
  hyphens: auto;
}

/* ── Modals (native \u003cdialog\u003e) ── */
.modal-dialog {
  border: none;
  padding: 0;
  background: transparent;
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  overflow: visible;
  outline: none;
}

.modal-dialog::backdrop {
  background: rgba(7, 11, 20, 0.72);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

:root.light .modal-dialog::backdrop {
  background: rgba(15, 25, 50, 0.5);
}

.modal-dialog .modal-content {
  background: var(--surface);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-md);
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-md);
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.close-btn,
.close-button {
  background: transparent;
  border: none;
  font-size: 1.3rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  padding: 2px 4px;
  border-radius: 4px;
  transition: color 0.15s;
}

.close-btn:hover,
.close-button:hover { color: var(--text); }

.modal-body { padding: 20px 24px; }

.manual-body {
  padding: 20px 24px;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.75;
}

/* ── Toast Notifications ── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  color: #fff;
  min-width: 280px;
  max-width: 420px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  animation: toast-in 0.35s cubic-bezier(.21,1.02,.73,1) forwards;
  transform: translateX(120%);
}

.toast.toast-out {
  animation: toast-out 0.3s ease-in forwards;
}

.toast-icon {
  font-size: 1.15rem;
  flex-shrink: 0;
}

.toast-msg {
  flex: 1;
  line-height: 1.4;
}

.toast--error   { background: linear-gradient(135deg, #dc2626, #b91c1c); }
.toast--success { background: linear-gradient(135deg, #059669, #047857); }
.toast--info    { background: linear-gradient(135deg, #0d9488, #0f766e); }
.toast--warning { background: linear-gradient(135deg, #d97706, #b45309); }

@keyframes toast-in {
  from { transform: translateX(120%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

@keyframes toast-out {
  from { transform: translateX(0);    opacity: 1; }
  to   { transform: translateX(120%); opacity: 0; }
}

.manual-body h3 {
  margin-top: 20px;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.manual-body ul { padding-left: 18px; margin-bottom: 12px; }
.manual-body li { margin-bottom: 6px; color: var(--text-muted); }
.manual-body strong { color: var(--text); }

.manual-body code {
  font-family: var(--font-mono);
  font-size: 0.82em;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 1px 5px;
  color: var(--accent);
}

/* ── XY Plot Modal ── */
.plot-controls { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }

.plot-chart-wrapper {
  background: var(--surface-alt) !important;
  border: 1px solid var(--border) !important;
}

/* ==========================================================================
   ACESSIBILIDADE (SPRINT 3.1)
   ========================================================================== */

/* Focus ring global para elementos interativos */
*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Polimento extra para inputs, selects e botões */
input[type="number"]:focus-visible,
input[type="range"]:focus-visible,
select:focus-visible,
.modern-select:focus-visible,
.segmented-control:focus-visible,
button:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    /* Cria uma "aura" suave em volta do elemento focado */
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.25); 
}

button:focus:not(:focus-visible) { outline: none; }

/* ── Subtitle / misc ── */
.subtitle { margin-top: 10px; font-size: 0.75rem; color: var(--text-dim); text-align: center; }

/* ── Responsive ── */
@media (max-width: 1200px) {
  .app-layout { grid-template-columns: 256px 1fr; }
  .right-panel {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}

@media (max-width: 900px) {
  .topbar-subtitle { display: none; }
  .topbar-divider  { display: none; }
}

@media (max-width: 768px) {
  .topbar { padding: 0 1rem; }

  .app-layout {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 16px;
  }

  .sidebar,
  .main-content,
  .right-panel {
    position: static;
    grid-column: span 1;
  }

  .right-panel { grid-template-columns: 1fr; }
  .viz-layout  { grid-template-columns: 1fr; }

  .numeric-results {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding-right: 0;
    padding-bottom: 16px;
  }

  .huge-number { font-size: 2.75rem; }
}

/* ─────────────────────────────────────────────────────────────
   TestSelector — Navegação por Objetivo de Pesquisa (2 níveis)
   ───────────────────────────────────────────────────────────── */

/* Oculta os selects legados (mantidos apenas como bridge para o motor) */
.hidden-engine-select {
  display: none !important;
}

/* Painel raiz */
.test-selector-panel {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 12px;
}

/* ── Nível 1: Lista de categorias ── */
.nav-category-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-category-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: border-color 0.15s, background 0.15s;
  font-family: var(--font-sans);
  color: var(--text);
}

.nav-category-item:hover:not([disabled]):not(.active) {
  border-color: var(--border-mid);
  background: var(--surface);
}

.nav-category-item.active {
  border-color: var(--accent-dark);
  background: var(--accent-bg);
  box-shadow: 0 0 0 1px var(--accent-ring);
}

.nav-category-item.empty {
  opacity: 0.45;
  cursor: not-allowed;
}

.nav-cat-icon {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  min-width: 20px;
  text-align: center;
  flex-shrink: 0;
  font-family: var(--font-mono);
}

.nav-cat-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.nav-cat-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-cat-desc {
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.3;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-cat-arrow {
  font-size: 1rem;
  color: var(--text-dim);
  flex-shrink: 0;
  line-height: 1;
}

/* ── Nível 2: Botão Voltar + lista de testes ── */
.nav-test-view {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-back-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  border-radius: var(--radius);
  transition: color 0.15s, background 0.15s;
  margin-bottom: 2px;
}

.nav-back-btn:hover {
  background: var(--accent-bg);
}

.nav-back-arrow {
  font-size: 1.1rem;
  line-height: 1;
}

.nav-back-label {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.7rem;
}

.nav-test-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.nav-test-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  text-align: left;
  width: 100%;
  font-family: var(--font-sans);
  transition: border-color 0.15s, background 0.15s;
}

.nav-test-item:hover:not([disabled]):not(.active) {
  border-color: var(--border-mid);
  background: var(--surface);
}

.nav-test-item.active {
  border-color: var(--accent-dark);
  background: var(--accent-bg);
  box-shadow: 0 0 0 1px var(--accent-ring);
}

.nav-test-item.disabled {
  opacity: 0.40;
  cursor: not-allowed;
}

.nav-test-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.35;
}

.nav-test-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  flex-shrink: 0;
}

/* ── Badges ── */
.badge {
  font-size: 0.63rem;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 3px;
  white-space: nowrap;
  letter-spacing: 0.03em;
}

/* NP = Não-Paramétrico */
.badge-np {
  background: rgba(251, 146, 60, 0.15);
  color: #fb923c;
  border: 1px solid rgba(251, 146, 60, 0.3);
}

/* Em breve */
.badge-soon {
  background: var(--surface-alt);
  color: var(--text-dim);
  border: 1px solid var(--border);
}


