:root {
  --bg-dark: #0a0a0a;
  --bg-panel: rgba(10, 30, 32, 0.92);
  --teal: #1a5c5e;
  --teal-bright: #2a8a8d;
  --teal-glow: #3eb8bc;
  --gold: #c4923a;
  --gold-light: #e0b060;
  --silver: #8a9098;
  --bronze: #6b4423;
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.65);
  --pill-radius: 999px;
  --card-radius: 24px;
  --font-display: "Segoe UI", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-display);
  color: var(--text);
  background: var(--bg-dark);
}

body.bg-pattern {
  background-color: var(--bg-dark);
  background-image: url("/static/img/bg-pattern.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

body.bg-pattern::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(10, 40, 42, 0.55) 50%,
    rgba(0, 0, 0, 0.8) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

.pill {
  border-radius: var(--pill-radius);
}

.panel {
  background: var(--bg-panel);
  border: 1px solid rgba(62, 184, 188, 0.25);
  border-radius: var(--card-radius);
  backdrop-filter: blur(12px);
}

.btn {
  appearance: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform 0.12s ease, filter 0.12s ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn-teal {
  background: linear-gradient(180deg, var(--teal-bright), var(--teal));
  color: var(--text);
}

.btn-gold {
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  color: var(--text);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-danger {
  background: linear-gradient(180deg, #a03030, #702020);
  color: var(--text);
}

input[type="number"],
input[type="text"] {
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(62, 184, 188, 0.35);
  background: rgba(0, 0, 0, 0.45);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
}

input:focus {
  outline: 2px solid var(--teal-glow);
  outline-offset: 1px;
}

label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.field {
  margin-bottom: 14px;
}

.stat-value {
  font-variant-numeric: tabular-nums;
}

.status-running {
  color: #5dffa8;
}

.status-paused {
  color: var(--gold-light);
}

.status-stopped {
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .hide-mobile {
    display: none !important;
  }
}
