@import url("https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;600&display=swap");

:root {
  --bg: #f6f2ed;
  --card: #ffffff;
  --ink: #1f1f1f;
  --muted: #6b625c;
  --accent: #e48f5d;
  --accent-dark: #c97443;
  --border: #eaded5;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Rubik", sans-serif;
  background: radial-gradient(circle at top left, #fbe7d7 0%, #f6f2ed 40%, #efe7df 100%);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 18px;
}

.page {
  width: min(920px, 100%);
  display: grid;
  gap: 28px;
}

.hero {
  display: flex;
  align-items: center;
  gap: 18px;
}

.logo {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 600;
  letter-spacing: 1px;
}

h1 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

p {
  color: var(--muted);
  margin-top: 6px;
}

main {
  display: grid;
  gap: 20px;
}

.card {
  background: var(--card);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 18px 40px rgba(36, 23, 15, 0.08);
  border: 1px solid var(--border);
}

.card.hidden {
  display: none;
}

.card h2 {
  font-size: 1.4rem;
  margin-bottom: 18px;
}

label {
  display: grid;
  gap: 8px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 16px;
}

input {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 1rem;
  font-family: inherit;
  background: #fffaf6;
}

button {
  border: none;
  background: var(--accent);
  color: #fff;
  padding: 12px 18px;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

button:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

button.ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}

button.ghost:hover {
  background: #f4e9e0;
  color: var(--ink);
}

.error {
  color: #b1402c;
  min-height: 20px;
  margin-top: 6px;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.settings {
  display: grid;
  gap: 12px;
}

.setting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #fffaf6;
}

.setting h3 {
  font-size: 1rem;
}

.setting span {
  color: var(--muted);
  font-size: 0.9rem;
}

.number input {
  width: 110px;
  text-align: right;
}

.toggle {
  position: relative;
  width: 54px;
  height: 30px;
}

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

.slider {
  position: absolute;
  inset: 0;
  background: #e3d5cb;
  border-radius: 999px;
  transition: background 0.2s ease;
}

.slider::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  top: 4px;
  left: 4px;
  transition: transform 0.2s ease;
  box-shadow: 0 4px 10px rgba(31, 31, 31, 0.2);
}

.toggle input:checked + .slider {
  background: #3c9e7a;
}

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

.actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.status {
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 700px) {
  .hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .card {
    padding: 20px;
  }
}
