/* public/style.css */
/* Simple light/dark theme using CSS variables */
:root {
  --bg: #ffffff;
  --fg: #0f172a;
  --muted: #64748b;
  --primary: #2563eb;
  --card: #f8fafc;
  --bar-bg: #e5e7eb;
}

:root[data-theme="dark"],
html[data-theme="dark"] {
  --bg: #0b1220;
  --fg: #e2e8f0;
  --muted: #94a3b8;
  --primary: #60a5fa;
  --card: #111827;
  --bar-bg: #1f2937;
}

html,
body {
  background: var(--bg);
  color: var(--fg);
}

.container {
  margin: 2rem auto;
  max-width: 820px;
  padding: 0 1rem;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.card {
  background: var(--card);
  border-radius: 10px;
  padding: 1rem;
  box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 1px 3px 1px;
}

.btn {
  display: inline-block;
  padding: .6rem 1rem;
  border-radius: 10px;
  border: 0;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}

.input,
input[type="email"],
input[type="text"] {
  width: calc(100% - 1.25rem);
  padding: .5rem .75rem;
  border-radius: 10px;
  border: 1px solid var(--bar-bg);
  background: var(--bg);
  color: var(--fg);
}

.bar {
  height: 14px;
  background: var(--bar-bg);
  border-radius: 999px;
  overflow: hidden;
}

.fill {
  height: 100%;
  background: var(--primary);
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.theme-toggle {
  padding: .4rem .7rem;
  border-radius: 999px;
  border: 1px solid var(--bar-bg);
  background: transparent;
  color: var(--fg);
  cursor: pointer;
}

.theme-toggle-btn {
  padding: .4rem .7rem;
  border-radius: 999px;
  border: 1px solid var(--bar-bg);
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  position: absolute;
  top: 1rem;
  right: 1rem;
}

a {
  color: var(--primary);
}

.muted {
  color: var(--muted);
}

ul {
  padding-left: 1.2rem;
}

.option-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--bar-bg);
  border-radius: 10px;
  margin-bottom: 1rem;
  cursor: pointer;
  background: var(--card);
  transition: box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.option-container:hover {
  box-shadow: 0 4px 8px rgba(60, 64, 67, 0.12);
  background-color: var(--bg);
}

.option-container:has(input:checked) {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary);
}

.option-container:has(input:checked) .option-label {
  font-weight: bold;
  color: var(--primary);
}

.option-input {
  accent-color: var(--primary);
}

.row-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}

.toggle-button-wrapper {
  display: flex;
  justify-content: flex-end;
}
