/* ============================================================
   RivianCrawlr Admin — Dark theme overrides for Pico CSS
   Following CLAUDE.md dark consumer-facing palette
   ============================================================ */

:root {
  --pico-background-color: #0f1a26;
  --pico-card-background-color: #121e2b;
  --pico-card-sectioning-background-color: #121e2b;
  --pico-primary: #fba919;
  --pico-primary-hover: #e89a0e;
  --pico-primary-inverse: #0f172a;
  --pico-color: #e5e7eb;
  --pico-muted-color: #9ca3af;
  --pico-secondary: #9ca3af;
  --pico-muted-border-color: #374151;
  --rtg-accent: #fba919;
  --rtg-error: #ef4444;
  --rtg-text-secondary: #9ca3af;
}

/* ---------- Typography ---------- */

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans,
               Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

code, pre, kbd {
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas,
               'Courier New', monospace;
}

/* ---------- Brand ---------- */

.brand-gradient {
  background: linear-gradient(135deg, #fba919, #d2de24, #86c440, #5ec095, #34c5ec, #2b96d2, #3571b8, #534da0, #d11d55, #ef3d6c, #ed1a36, #ee383a);
  height: 3px;
  width: 100%;
}

.brand-name {
  font-size: 20px;
  font-weight: 600;
}

.brand-accent {
  color: var(--rtg-accent);
}

/* ---------- Flash Messages ---------- */

article.flash-success {
  border-left: 4px solid #4ade80;
  background: color-mix(in srgb, #4ade80 12%, #121e2b);
  color: #4ade80;
}

article.flash-error {
  border-left: 4px solid #ef4444;
  background: color-mix(in srgb, #ef4444 12%, #121e2b);
  color: #fca5a5;
}

article.flash-info {
  border-left: 4px solid #60a5fa;
  background: color-mix(in srgb, #60a5fa 12%, #121e2b);
  color: #93bbfd;
}

article.flash-warning {
  border-left: 4px solid var(--rtg-accent);
  background: color-mix(in srgb, #fba919 12%, #121e2b);
  color: #fcd278;
}

/* ---------- Badges ---------- */

mark {
  background-color: color-mix(in srgb, #4ade80 15%, #121e2b);
  color: #4ade80;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
}

mark.error {
  background-color: color-mix(in srgb, #ef4444 15%, #121e2b);
  color: #fca5a5;
}

mark.success {
  background-color: color-mix(in srgb, #4ade80 15%, #121e2b);
  color: #4ade80;
}

mark.info {
  background-color: color-mix(in srgb, #60a5fa 15%, #121e2b);
  color: #93bbfd;
}

mark.warning {
  background-color: color-mix(in srgb, #fba919 15%, #121e2b);
  color: #fcd278;
}

/* ---------- Log Output ---------- */

pre#log-output {
  background: #0f1a26;
  border: 1px solid #374151;
  color: #e5e7eb;
  font-size: 13px;
  max-height: 600px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
  padding: 12px;
  line-height: 1.5;
}

/* ---------- Buttons ---------- */

.btn-destructive {
  background: #ef4444;
  border-color: #ef4444;
  color: #fff;
}

.btn-destructive:hover {
  background: #dc2626;
  border-color: #dc2626;
  color: #fff;
}

/* ---------- Tables ---------- */

table thead th {
  background: #0f1a26;
  color: #9ca3af;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

table tbody tr:hover {
  background: color-mix(in srgb, #374151 30%, #121e2b);
}

/* ---------- Inline alert (used in settings/notifications/content-filters) ---------- */

.alert-success {
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  background: color-mix(in srgb, #4ade80 12%, #121e2b);
  border-left: 4px solid #4ade80;
  color: #4ade80;
  border-radius: 0 8px 8px 0;
}

.alert-error {
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  background: color-mix(in srgb, #ef4444 12%, #121e2b);
  border-left: 4px solid #ef4444;
  color: #fca5a5;
  border-radius: 0 8px 8px 0;
}

.alert-info {
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  background: color-mix(in srgb, #60a5fa 12%, #121e2b);
  border-left: 4px solid #60a5fa;
  color: #93bbfd;
  border-radius: 0 8px 8px 0;
}

.alert-warning {
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  background: color-mix(in srgb, #fba919 12%, #121e2b);
  border-left: 4px solid var(--rtg-accent);
  color: #fcd278;
  border-radius: 0 8px 8px 0;
}
