/* Styling for the app shell. Colors and fonts come from theme.js
   as CSS variables, so look changes belong there, not here. */

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: var(--font-body);
  padding-bottom: 84px;
}

h1, h2, h3 { font-family: var(--font-heading); font-weight: 600; }

#app-header {
  padding: 18px 20px 6px;
}
#app-header h1 { margin: 0; font-size: 1.35rem; }

main { padding: 12px 16px; max-width: 640px; margin: 0 auto; }

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 18px;
  box-shadow: 0 1px 4px rgba(58, 51, 64, 0.08);
}

.auth-card { margin-top: 14vh; text-align: center; }

.dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent); margin: 0 auto 14px;
}

label { display: block; text-align: left; margin: 12px 0; font-size: 0.95rem; }
label span { display: block; margin-bottom: 6px; color: var(--ink-soft); }

input[type="text"], input[type="email"], input[type="password"] {
  width: 100%; padding: 12px; font-size: 1rem;
  border: 1px solid #E3DDD4; border-radius: 10px;
  background: #FFFFFF; color: var(--ink);
}

button.primary {
  background: var(--accent); color: #fff; border: none;
  padding: 13px 22px; border-radius: 12px; font-size: 1rem;
  width: 100%; margin-top: 8px; cursor: pointer;
}
button.primary.small { width: auto; padding: 9px 18px; font-size: 0.9rem; }

button.linklike {
  background: none; border: none; color: var(--accent);
  margin-top: 14px; cursor: pointer; font-size: 0.92rem;
}

button.danger {
  background: none; border: 1px solid #C4694F; color: #C4694F;
  padding: 11px 20px; border-radius: 12px; width: 100%;
  margin-top: 6px; cursor: pointer; font-size: 0.95rem;
}

.soft { color: var(--ink-soft); font-size: 0.92rem; }
.center { text-align: center; }

#today-list { list-style: none; margin: 8px 0 0; padding: 0; }
#today-list li { padding: 7px 0; border-bottom: 1px solid #F0EBE3; }
#today-list li:last-child { border-bottom: none; }

#category-tiles {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.tile {
  border-radius: var(--radius); padding: 20px 16px; color: #fff;
  font-family: var(--font-heading); font-size: 1.05rem; min-height: 84px;
  display: flex; align-items: flex-end;
}

.toggle { display: flex; align-items: center; gap: 10px; margin: 12px 0; }
.toggle span { margin: 0; color: var(--ink); }
.toggle input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--accent); }
.toggle input[type="color"] { width: 44px; height: 30px; border: none; background: none; padding: 0; }

#bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  display: flex; background: var(--card);
  border-top: 1px solid #EEE8DF;
  padding-bottom: env(safe-area-inset-bottom);
}
#bottom-nav a {
  flex: 1; text-align: center; padding: 15px 0;
  color: var(--ink-soft); text-decoration: none; font-size: 0.95rem;
}
#bottom-nav a.active { color: var(--accent); font-weight: 600; }
