/* ---------- Light Colors (Default) ---------- */
:root {
  --bg: #ffffff;
  --fg: #111111;
  --card-bg: #f5f5f5;
  --border: rgba(0, 0, 0, 0.1);
  --accent: #0066cc;
}

/* ---------- Dark Colors ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212;
    --fg: #e0e0e0;
    --card-bg: #1e1e1e;
    --border: rgba(255, 255, 255, 0.15);
    --accent: #3399ff;
  }
}

/* ---------- Forced Themes via data-theme ---------- */
html[data-theme="light"] {
  --bg: #ffffff;
  --fg: #111111;
  --card-bg: #f5f5f5;
  --border: rgba(0, 0, 0, 0.1);
  --accent: #0066cc;
}

html[data-theme="dark"] {
  --bg: #121212;
  --fg: #e0e0e0;
  --card-bg: #1e1e1e;
  --border: rgba(255, 255, 255, 0.15);
  --accent: #3399ff;
}

/* ---------- Base Styles ---------- */
body {
  margin: 0;
  padding: 2rem;
  background: var(--bg);
  color: var(--fg);
  font-family: sans-serif;
  transition: background 0.25s ease, color 0.25s ease;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

button {
  background: var(--accent);
  border: none;
  padding: 0.5rem 1rem;
  color: #ffffff;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
}

button:hover {
  opacity: 0.9;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1.5rem;
}
