/* Tokyo Night theme for copyparty
 * Based on https://github.com/enkia/tokyo-night-vscode-theme
 * Place in: /mnt/user/appdata/copyparty/config/tokyo-night.css
 *
 * Using theme: 0 (classic dark = html.a.z) as base
 */

/* JetBrains Mono font */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* Apply JetBrains Mono everywhere */
html, body, * {
  font-family: 'JetBrains Mono', monospace !important;
}

/* Override CSS variables for theme 0 dark (html.a.z) */
html.a.z {
  /* Tokyo Night Storm colors */
  --bg: #1a1b26;
  --bg2: #16161e;
  --fg: #a9b1d6;
  --fg2: #565f89;
  --hl: #7aa2f7;
  --hl2: #bb9af7;
  --err: #f7768e;
  --ok: #9ece6a;
  --warn: #e0af68;
}

/* Also apply to just html.z in case class structure differs */
html.z {
  --bg: #1a1b26;
  --bg2: #16161e;
  --fg: #a9b1d6;
  --fg2: #565f89;
  --hl: #7aa2f7;
  --hl2: #bb9af7;
  --err: #f7768e;
  --ok: #9ece6a;
  --warn: #e0af68;
}

/* Fallback: apply to root as well */
:root {
  --bg: #1a1b26;
  --bg2: #16161e;
  --fg: #a9b1d6;
  --fg2: #565f89;
  --hl: #7aa2f7;
  --hl2: #bb9af7;
  --err: #f7768e;
  --ok: #9ece6a;
  --warn: #e0af68;
}

/* Additional Tokyo Night polish */
body {
  background-color: #1a1b26;
  color: #a9b1d6;
}

a { color: #7dcfff; }
a:hover { color: #89ddff; }
a:visited { color: #bb9af7; }

/* Scrollbars */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #16161e; }
::-webkit-scrollbar-thumb { background: #3b4261; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #565f89; }

/* Selection highlight */
::selection {
  background: #364a82;
  color: #c0caf5;
}
