/* ARI Robosync Theme - Centralized Design System */

/* Font imports - change URL here to experiment with different fonts */
@import url("https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;700&display=swap");

:root {
  /* Typography */
  --font-mono: "Fira Code", monospace;
  --font-serif: Georgia, "Times New Roman", serif;
  --font-family: var(--font-mono);
  --font-size-base: 13px;
  --font-size-sm: 11px;
  --font-size-xs: 10px;

  /* Dark theme (default) */
  --bg: #0c0c0c;
  --bg-surface: #141414;
  --bg-hover: #1a1a1a;
  --bg-card: #181818;
  --border: #2a2a2a;
  --text: #e0e0e0;
  --text-dim: #a0a0a0;
  --text-bright: #ffffff;
  --green: #00d26a;
  --green-dim: rgba(0, 210, 106, 0.1);
  --red: #ff4444;
  --red-dim: rgba(255, 68, 68, 0.1);
  --yellow: #ffcc00;
  --yellow-dim: rgba(255, 204, 0, 0.1);
  --blue: #4a9eff;
  --blue-dim: rgba(74, 158, 255, 0.1);
  --purple: #a855f7;
  --purple-dim: rgba(168, 85, 247, 0.1);
  --cyan: #22d3ee;
  --orange: #f97316;
  --pink: #ec4899;
  --accent: #4a9eff;
}

[data-theme="light"] {
  --bg: #ffffff;
  --bg-surface: #f8f8f8;
  --bg-hover: #f0f0f0;
  --bg-card: #fafafa;
  --border: #d0d0d0;
  --text: #1a1a1a;
  --text-dim: #666666;
  --text-bright: #000000;
  --green: #059669;
  --green-dim: rgba(5, 150, 105, 0.1);
  --red: #dc2626;
  --red-dim: rgba(220, 38, 38, 0.1);
  --yellow: #ca8a04;
  --yellow-dim: rgba(202, 138, 4, 0.1);
  --blue: #2563eb;
  --blue-dim: rgba(37, 99, 235, 0.1);
  --purple: #7c3aed;
  --purple-dim: rgba(124, 58, 237, 0.1);
  --cyan: #0891b2;
  --orange: #ea580c;
  --pink: #db2777;
  --accent: #2563eb;
}

/* Theme Toggle Button */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 2px 8px;
  cursor: pointer;
  font-size: 10px;
  font-family: inherit;
  margin-right: 12px;
  transition: all 0.15s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.theme-toggle:hover {
  background: var(--bg-hover);
  color: var(--text);
  border-color: var(--text-dim);
}

/* Theme toggle text: shows mode to switch TO */
[data-theme="dark"] .theme-icon::before,
:root:not([data-theme]) .theme-icon::before {
  content: "LIGHT";
}

[data-theme="light"] .theme-icon::before {
  content: "DARK";
}

/* Global layout — flex column body + swup so footers stick to bottom */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
#swup {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

/* Global Scrollbar Styles */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-dim);
}

::-webkit-scrollbar-corner {
  background: var(--bg);
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--border) var(--bg);
}

/* Uploading episode state */
tr.uploading {
  opacity: 0.4;
  cursor: not-allowed !important;
}

tr.uploading:hover {
  background: transparent !important;
}
