/* Jacque-lendar — shared styles. Warm palette nodding to a red-merle Aussie:
   creams, warm browns, a soft coral accent. Kept small and dependency-free. */
:root {
  --bg: #faf6f1;
  --card: #ffffff;
  --ink: #33291f;
  --muted: #8a7c6d;
  --line: #ece3d8;
  --brand: #b5651d;        /* warm caramel */
  --brand-dark: #904f16;
  --accent: #c8794b;
  --ok-bg: #e8f5e9; --ok-ink: #276b2d;
  --err-bg: #fdecea; --err-ink: #a5281c;
  --info-bg: #eef4fb; --info-ink: #295b8f;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(80, 55, 30, 0.10);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-dark); }
a:hover { color: var(--brand); }

/* ---- Centered auth card layout ---- */
.auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.card {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 26px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}
.brand__logo {
  width: 52px; height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--line);
  flex: none;
}
.brand__name { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.01em; }
.brand__name span { color: var(--brand); }
h1 { font-size: 1.35rem; margin: 18px 0 4px; }
.sub { color: var(--muted); margin: 0 0 20px; font-size: 0.95rem; }

/* ---- Forms ---- */
label { display: block; font-weight: 600; font-size: 0.9rem; margin: 14px 0 6px; }
input[type=email], input[type=password], input[type=text] {
  width: 100%;
  padding: 11px 12px;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid #d9cec0;
  border-radius: 10px;
  transition: border-color .15s, box-shadow .15s;
}
input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(181, 101, 29, 0.15);
}
.btn {
  display: inline-block;
  width: 100%;
  margin-top: 20px;
  padding: 12px 16px;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: var(--brand);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background .15s;
}
.btn:hover { background: var(--brand-dark); }
.btn:disabled { opacity: .6; cursor: default; }
.btn--ghost {
  background: transparent;
  color: var(--brand-dark);
  border: 1px solid #d9cec0;
}
.btn--ghost:hover { background: #f3ece2; color: var(--brand-dark); }

.row-between { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.alt { margin-top: 18px; font-size: 0.92rem; color: var(--muted); text-align: center; }

/* ---- Status message ---- */
.msg {
  margin-top: 16px;
  padding: 11px 13px;
  border-radius: 10px;
  font-size: 0.92rem;
}
.msg--ok   { background: var(--ok-bg);   color: var(--ok-ink); }
.msg--error{ background: var(--err-bg);  color: var(--err-ink); }
.msg--info { background: var(--info-bg); color: var(--info-ink); }

/* ---- Landing hero (index) ---- */
.hero {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  padding: 40px 24px;
}
.hero__photo {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 8px auto 24px;
}
.hero h1 { font-size: 2rem; margin: 0 0 8px; }
.hero p { color: var(--muted); font-size: 1.05rem; margin: 0 0 26px; }
.hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .btn { width: auto; margin-top: 0; padding: 12px 26px; }

/* Landing photo strip */
.strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 36px;
}
.strip img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: var(--shadow);
}
@media (max-width: 460px) {
  .strip { grid-template-columns: 1fr 1fr; }
  .strip img:last-child { display: none; }
}

/* ---- App chrome (dashboard / admin) ---- */
.topbar {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 20px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.topbar .brand { margin: 0; flex: 1; }
.topbar .brand__logo { width: 40px; height: 40px; }
.topbar .brand__name { font-size: 1.1rem; }
.topbar .who { color: var(--muted); font-size: .9rem; }
.btn--sm {
  width: auto; margin: 0; padding: 8px 14px; font-size: .9rem;
}
.container { max-width: 720px; margin: 0 auto; padding: 24px 20px 60px; }
.container > .intro { color: var(--muted); margin: 0 0 20px; }

.day { margin-bottom: 26px; }
.day__label {
  font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  color: var(--brand-dark); margin: 0 0 10px; padding-bottom: 6px;
  border-bottom: 2px solid var(--line);
}
.slot {
  display: flex; align-items: center; gap: 14px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 14px; margin-bottom: 10px;
}
.slot__main { flex: 1; min-width: 0; }
.slot__time { font-weight: 700; font-size: 1.02rem; }
.slot__notes { color: var(--muted); font-size: .9rem; margin-top: 2px; }
.slot__who { font-size: .82rem; margin-top: 3px; }
.badge {
  display: inline-block; padding: 2px 9px; border-radius: 999px;
  font-size: .74rem; font-weight: 700; letter-spacing: .02em;
}
.badge--free  { background: var(--ok-bg);   color: var(--ok-ink); }
.badge--mine  { background: #fff2e2;         color: var(--brand-dark); }
.badge--taken { background: #eee7dd;         color: var(--muted); }
.slot--mine { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }

.empty {
  text-align: center; color: var(--muted);
  background: var(--card); border: 1px dashed var(--line);
  border-radius: 12px; padding: 40px 20px;
}
.empty__photo {
  width: 160px; height: 160px;
  object-fit: cover; border-radius: 50%;
  margin: 0 auto 16px; display: block;
  border: 3px solid var(--line);
}
.empty p { margin: 0; }
.spinner { text-align: center; color: var(--muted); padding: 40px; }

/* ---- Admin page ---- */
.panel {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px; margin-bottom: 22px;
}
.panel > h2 { font-size: 1.05rem; margin: 0 0 4px; }
.panel > .hint { color: var(--muted); font-size: .88rem; margin: 0 0 16px; }
.field-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.field-row .field { flex: 1; min-width: 120px; }
.field-row label { margin-top: 0; }
input[type=date], input[type=time] {
  width: 100%; padding: 10px 11px; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid #d9cec0; border-radius: 10px;
}
textarea {
  width: 100%; min-height: 130px; padding: 11px 12px; font-size: .95rem;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  color: var(--ink); background: #fff; border: 1px solid #d9cec0;
  border-radius: 10px; resize: vertical;
}
input[type=file] { font-size: .9rem; margin-top: 6px; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.btn--danger { background: var(--err-ink); }
.btn--danger:hover { background: #7f1e14; }

.preview { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 14px; }
.preview ul { margin: 6px 0 0; padding-left: 18px; }
.preview .err { color: var(--err-ink); }
.preview .ok-count { color: var(--ok-ink); font-weight: 600; }

table.slots { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.slots th, table.slots td { text-align: left; padding: 8px 8px; border-bottom: 1px solid var(--line); }
table.slots th { color: var(--muted); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; }
table.slots td.tools { text-align: right; white-space: nowrap; }
table.slots tr.past td { color: var(--muted); }
.tag-claimed { display: inline-block; background: #fff2e2; color: var(--brand-dark); border-radius: 999px; padding: 1px 8px; font-size: .74rem; font-weight: 700; }
.link-btn { background: none; border: none; color: var(--err-ink); cursor: pointer; font-size: .9rem; padding: 4px 6px; text-decoration: underline; width: auto; margin: 0; }
.link-btn:hover { color: #7f1e14; background: none; }
.nav-link { font-size: .9rem; }
