/**
 * theme.css — Shared dark/light theme variables + toggle button style,
 * used by index.php, daily.php, settings.php and test_send_report.php.
 * Dark is the default (current colors, unchanged). Light keeps the
 * same accent/teal color, just swaps the black background for a
 * light one and adjusts text/border colors for contrast.
 */

:root {
  --bg: #0f1417;
  --fg: #dce4e8;
  --muted: #7f919c;
  --accent: #57c7b0;
  --accent-hover: #4db3a0;
  --accent-fg: #0b1512;
  --link: #57c7b0;
  --border: #2a343b;
  --panel-bg: #141a1e;
  --disabled-bg: #2a343b;
  --disabled-fg: #7f919c;
  --danger: #e0685c;
  --danger-bg: rgba(224, 104, 92, .12);
  --danger-border: rgba(224, 104, 92, .35);
  --ok-bg: rgba(87, 199, 176, .12);
  --ok-border: rgba(87, 199, 176, .35);
  --code-bg: #0b1013;
  --code-fg: #57c7b0;
}

:root[data-theme="light"] {
  --bg: #f6f8f9;
  --fg: #1c262c;
  --muted: #5c6a72;
  --accent: #57c7b0;
  --accent-hover: #45b09c;
  --accent-fg: #0b1512;
  --link: #1c8c78;
  --border: #d7dee1;
  --panel-bg: #ffffff;
  --disabled-bg: #e6eaec;
  --disabled-fg: #8b979d;
  --danger: #c94a3f;
  --danger-bg: rgba(201, 74, 63, .08);
  --danger-border: rgba(201, 74, 63, .3);
  --ok-bg: rgba(28, 140, 120, .1);
  --ok-border: rgba(28, 140, 120, .3);
  --code-bg: #eef2f3;
  --code-fg: #1c8c78;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--panel-bg);
  border: 1px solid var(--border);
  color: var(--fg);
  cursor: pointer;
  font-size: 18px;
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: var(--border);
}
