/* =====================
   DESIGN TOKENS
===================== */
:root {
  --bg: #f4f6f8;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --accent: #4f46e5;
}

[data-theme="dark"] {
  --bg: #0f172a;
  --card: #1e293b;
  --text: #f8fafc;
  --muted: #94a3b8;
  --accent: #38bdf8;
}

/* =====================
   BASE
===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", "Segoe UI", sans-serif;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.35s ease, color 0.35s ease;
}

/* =====================
   CARD
===================== */
.card {
  width: 440px;
  background: var(--card);
  padding: 28px;
  border-radius: 18px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.25);
  transition: background 0.35s ease;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

h1 {
  font-size: 22px;
}

/* =====================
   TOGGLE SWITCH
===================== */
.switch {
  position: relative;
  width: 52px;
  height: 28px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  inset: 0;
  background: #c7c7c7;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.slider::before {
  content: "";
  position: absolute;
  height: 22px;
  width: 22px;
  left: 3px;
  top: 3px;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

input:checked + .slider {
  background: var(--accent);
}

input:checked + .slider::before {
  transform: translateX(24px);
}

/* =====================
   TEXT
===================== */
p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.badge {
  margin-top: 18px;
  display: inline-block;
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 999px;
  background: rgba(79,70,229,0.15);
  color: var(--accent);
}
