/* Corvus V3 Dashboard Styles */

* { box-sizing: border-box; }

.card {
  background: #1a1d24;
  border-radius: 0.5rem;
  padding: 0.75rem;
}

.card-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9ca3af;
  margin-bottom: 0.5rem;
}

.metric-card {
  background: #1a1d24;
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  text-align: center;
}

.metric-label {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
}

.metric-val {
  font-size: 0.875rem;
  font-weight: 600;
  font-family: ui-monospace, monospace;
  color: #e5e7eb;
}

.btn {
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  color: white;
  transition: background 0.15s;
}

.btn-sm {
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.6875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  color: white;
  transition: background 0.15s;
}

.toggle {
  appearance: none;
  width: 2rem;
  height: 1rem;
  background: #374151;
  border-radius: 0.5rem;
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
}
.toggle::after {
  content: '';
  position: absolute;
  width: 0.75rem;
  height: 0.75rem;
  background: white;
  border-radius: 50%;
  top: 0.125rem;
  left: 0.125rem;
  transition: transform 0.2s;
}
.toggle:checked {
  background: #3b82f6;
}
.toggle:checked::after {
  transform: translateX(1rem);
}

.select-dark {
  background: #22262e;
  border: 1px solid #374151;
  border-radius: 0.375rem;
  padding: 0.375rem 0.5rem;
  color: #e5e7eb;
  font-size: 0.8125rem;
  width: 100%;
  cursor: pointer;
}
.select-dark:focus {
  outline: none;
  border-color: #3b82f6;
}

.input-sm {
  background: #22262e;
  border: 1px solid #374151;
  border-radius: 0.25rem;
  padding: 0.25rem 0.375rem;
  color: #e5e7eb;
  font-size: 0.8125rem;
  text-align: right;
  font-family: ui-monospace, monospace;
}
.input-sm:focus {
  outline: none;
  border-color: #3b82f6;
}

/* Global dark inputs - prevent white browser defaults */
input[type="number"],
input[type="range"],
input[type="text"] {
  background: #22262e;
  border: 1px solid #374151;
  color: #e5e7eb;
}
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: #374151;
  border: none;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #3b82f6;
  cursor: pointer;
}
select optgroup {
  background: #22262e;
  color: #e5e7eb;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #111318; }
::-webkit-scrollbar-thumb { background: #374151; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #4b5563; }

/* Entry conditions pills */
.ec-pill {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 600;
  padding: 0.125rem 0.4rem;
  border-radius: 0.25rem;
  background: #374151;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition: background 0.25s, color 0.25s;
}
.ec-pill.ec-ok {
  background: #14532d;
  color: #4ade80;
}
.ec-pill.ec-warn {
  background: #713f12;
  color: #fbbf24;
}
.ec-pill.ec-bad {
  background: #7f1d1d;
  color: #f87171;
}

/* Signal colors */
.text-bull { color: #22c55e; }
.text-bear { color: #ef4444; }
.text-neutral { color: #6b7280; }
