:root {
  --bg-dark: #0a0a0c;
  --bg-panel: #141519;
  --bg-panel-hover: #1c1e24;
  --bg-input: #0e1015;
  --border-subtle: #262933;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent: #38bdf8;
  --accent-strong: #0ea5e9;
  --accent-warm: #f59e0b;
  --accent-hot: #ef4444;
  --danger: #ef4444;
  --success: #22c55e;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace;
}

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

html,
body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: 1px solid var(--border-subtle);
  background: var(--bg-panel);
  color: var(--text-primary);
  border-radius: 10px;
  padding: 0.55rem 1rem;
  font-size: 0.92rem;
  font-weight: 500;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.08s ease;
}

button:hover:not(:disabled) {
  background: var(--bg-panel-hover);
  border-color: #3a3f4e;
}

button:active:not(:disabled) {
  transform: scale(0.98);
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

button.primary {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: #04131c;
  font-weight: 600;
}

button.primary:hover:not(:disabled) {
  background: var(--accent);
  border-color: var(--accent);
}

button.active-toggle {
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(245, 158, 11, 0.65);
  color: #fde68a;
}

button.danger {
  border-color: rgba(239, 68, 68, 0.45);
  color: #fca5a5;
}

button.danger:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.14);
  border-color: var(--danger);
}

input[type="text"] {
  font-family: inherit;
  background: var(--bg-input);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 0.55rem 0.85rem;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s ease;
}

input[type="text"]:focus {
  border-color: var(--accent);
}
