/* Minimal overrides on top of Pico.css.
 * Keep this tiny — Pico already handles layout, typography, dark mode.
 * Anything that fights Pico's defaults belongs in a custom component,
 * not here.
 */

/* --- Status header band --- */
.status-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.status-tile {
  background: var(--pico-card-background-color);
  border: 1px solid var(--pico-card-border-color);
  border-radius: var(--pico-border-radius);
  padding: 0.75rem;
}
.status-tile .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--pico-muted-color);
}
.status-tile .value {
  font-size: 1.4rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.status-tile.bot-up { border-left: 4px solid #2ecc71; }
.status-tile.bot-down { border-left: 4px solid #e74c3c; }

.pnl-positive { color: #2ecc71; }
.pnl-negative { color: #e74c3c; }

/* --- Coin table --- */
.coin-table th,
.coin-table td {
  font-variant-numeric: tabular-nums;
  padding: 0.4rem 0.6rem;
}
.coin-table tbody tr:hover {
  background: var(--pico-card-sectioning-background-color);
}

/* --- Activity panel --- */
#activity {
  max-height: 360px;
  overflow-y: auto;
  font-family: var(--pico-font-family-monospace);
  font-size: 0.85rem;
  padding: 0.5rem;
  background: var(--pico-card-background-color);
  border: 1px solid var(--pico-card-border-color);
  border-radius: var(--pico-border-radius);
}
.activity-line {
  padding: 0.15rem 0.25rem;
  border-bottom: 1px solid transparent;
  white-space: pre-wrap;
  word-break: break-word;
}
.activity-line .ts {
  color: var(--pico-muted-color);
  margin-right: 0.5rem;
}
.activity-line.level-INFO  .badge { color: #3498db; }
.activity-line.level-BUY   .badge { color: #2ecc71; }
.activity-line.level-SELL  .badge { color: #f39c12; }
.activity-line.level-ERROR .badge { color: #e74c3c; }
.activity-line .badge {
  font-weight: 600;
  margin-right: 0.5rem;
  display: inline-block;
  min-width: 3.5em;
}

footer { margin-top: 2rem; color: var(--pico-muted-color); font-size: 0.85rem; }
