.nav-btn {
  color: #9ca3af;
}
.nav-btn:hover, .nav-btn.active {
  background: #1f2937;
  color: #f9fafb;
}
.nav-btn.active {
  color: #38bdf8;
  background: #1e3a5f;
}

.card {
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 0.75rem;
  padding: 1.25rem;
}

.section-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #d1d5db;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.75rem;
}

.label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #d1d5db;
  margin-bottom: 0.375rem;
}

.input {
  width: 100%;
  padding: 0.625rem 0.875rem;
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 0.625rem;
  color: #f9fafb;
  font-size: 0.875rem;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}
.input:focus {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}
.input::placeholder { color: #6b7280; }
select.input { cursor: pointer; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 0.625rem 1.25rem;
  background: #0284c7;
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.625rem;
  transition: background 0.15s;
  border: none;
  cursor: pointer;
  gap: 0.375rem;
}
.btn-primary:hover { background: #0369a1; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: #1f2937;
  color: #d1d5db;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.625rem;
  border: 1px solid #374151;
  cursor: pointer;
  transition: all 0.15s;
  gap: 0.375rem;
}
.btn-secondary:hover { background: #374151; color: white; }

.btn-danger {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: #7f1d1d;
  color: #fca5a5;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.625rem;
  border: 1px solid #991b1b;
  cursor: pointer;
  transition: all 0.15s;
  gap: 0.375rem;
}
.btn-danger:hover { background: #991b1b; color: white; }

.btn-icon {
  padding: 0.375rem;
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 0.5rem;
  color: #9ca3af;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
}
.btn-icon:hover { background: #374151; color: white; }

.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-draft { background: #374151; color: #9ca3af; }
.badge-running { background: #14532d; color: #86efac; }
.badge-paused { background: #78350f; color: #fcd34d; }
.badge-ended { background: #1f2937; color: #6b7280; }

.stat-card {
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 0.75rem;
  padding: 1rem;
}

.variant-a { color: #38bdf8; }
.variant-b { color: #4ade80; }
.variant-c { color: #c084fc; }

.table-wrapper { overflow-x: auto; }
table.data-table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; }
.data-table th { text-align: left; padding: 0.5rem 0.75rem; color: #6b7280; font-weight: 500; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid #1f2937; }
.data-table td { padding: 0.625rem 0.75rem; border-bottom: 1px solid #1f2937; color: #e5e7eb; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #1f2937; }

.goal-block { background: #1a2332; border: 1px solid #2d3a50; border-radius: 0.625rem; padding: 1rem; }
.goal-type-badge { font-size: 0.65rem; padding: 0.15rem 0.5rem; border-radius: 0.375rem; background: #1e3a5f; color: #7dd3fc; }

.analysis-card { background: #0f1d2d; border: 1px solid #1e3a5f; border-radius: 0.75rem; padding: 1.25rem; }
.analysis-label { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: #475569; margin-bottom: 0.25rem; }
.insight-item { display: flex; gap: 0.5rem; margin-bottom: 0.375rem; font-size: 0.8125rem; color: #d1d5db; }
.insight-item::before { content: '•'; color: #38bdf8; flex-shrink: 0; }
.caveat-item { display: flex; gap: 0.5rem; margin-bottom: 0.375rem; font-size: 0.8125rem; color: #fbbf24; }
.caveat-item::before { content: '⚠'; flex-shrink: 0; font-size: 0.75rem; }

.dt-btn { text-align: center; }
.dt-btn.active[id="dt-all"] { border-color: #0ea5e9; color: #38bdf8; background: #0c2d44; }
.dt-btn.active[id="dt-mobile"] { border-color: #22c55e; color: #4ade80; background: #052e16; }
.dt-btn.active[id="dt-desktop"] { border-color: #a855f7; color: #c084fc; background: #2e1065; }

.tt-btn { text-align: left; }
.tt-btn.active[id="tt-redirect"] { border-color: #0ea5e9; color: #e0f2fe; background: #0c2d44; }
.tt-btn.active[id="tt-onpage"] { border-color: #22c55e; color: #dcfce7; background: #052e16; }
.tt-btn.active[id="tt-redirect"] svg { color: #38bdf8; }
.tt-btn.active[id="tt-onpage"] svg { color: #4ade80; }

.spinner { display: inline-block; width: 1rem; height: 1rem; border: 2px solid rgba(255,255,255,0.3); border-top-color: white; border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.p-value-sig { color: #4ade80; font-weight: 600; }
.p-value-ns { color: #f87171; }

.progress-bar { background: #1f2937; border-radius: 9999px; height: 6px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 9999px; transition: width 0.5s ease; }
