/* FrontDesk — Day 3 redesign (post-pilot).
 * Clean, modern, mobile-first. One stylesheet serves every vertical; the
 * per-vertical dashboards share these class names, so the look stays
 * consistent across FixIt Auto, BrightSmile Dental, and any app the
 * generator scaffolds later. Zero dependencies — plain CSS. */
:root {
  --navy: #0f2a43;
  --navy-2: #1a4066;
  --accent: #0b6e4f;
  --accent-dark: #095c42;
  --accent-soft: rgba(11, 110, 79, 0.12);
  --ink: #16212e;
  --muted: #5b6b7c;
  --line: #e3e8ef;
  --bg: #f3f5f8;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 8px 24px rgba(16, 24, 40, 0.05);
}

* { box-sizing: border-box; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  padding: 30px 28px 26px;
}
header h1 { margin: 0; font-size: 28px; font-weight: 750; letter-spacing: -0.02em; }
header p { margin: 6px 0 0; opacity: 0.85; font-size: 14px; }
header .intro {
  margin-top: 14px;
  max-width: 720px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  opacity: 1;
  font-size: 14.5px;
  line-height: 1.5;
}

main { max-width: 960px; margin: 0 auto; padding: 24px 20px 40px; display: grid; gap: 18px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
}
.card h2 { margin: 0 0 4px; font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.card h2 + p { margin-top: 4px; }

label { display: block; margin: 12px 0; font-weight: 600; font-size: 14px; }
label span.muted { display: block; font-weight: 400; margin-top: 2px; }

input, select {
  display: block;
  width: 100%;
  margin-top: 5px;
  padding: 11px 12px;
  border: 1.5px solid #c6cdd6;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input::placeholder { color: #98a2b3; }
input:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

button {
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 650;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease;
}
button:hover { background: var(--accent-dark); }
button:active { transform: translateY(1px); }
button:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 2px; }
button.secondary {
  background: #eef1f4;
  color: var(--ink);
  border: 1px solid #dbe2ea;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 600;
}
button.secondary:hover { background: #e2e8ef; }

form button[type="submit"] { margin-top: 6px; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
thead th {
  text-align: left;
  padding: 8px 8px;
  border-bottom: 2px solid var(--line);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid #eef1f4; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #f8fafc; }

pre {
  background: #f0f2f5;
  border-radius: 8px;
  padding: 12px;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 13.5px;
  line-height: 1.5;
}
pre:empty { display: none; }

.muted { color: var(--muted); font-size: 13px; }

#estimate-out:not(:empty) {
  background: #eef7f2;
  border: 1px solid #cfe8da;
}
#booking-out:not(:empty) {
  background: #eef7f2;
  border: 1px solid #cfe8da;
  font-weight: 600;
}

ul#outbox { margin: 8px 0 0; padding-left: 18px; font-size: 14px; }
ul#outbox li { margin: 4px 0; }

footer { text-align: center; padding: 10px 20px 36px; }

@media (max-width: 640px) {
  header { padding: 24px 18px 22px; }
  header h1 { font-size: 24px; }
  main { padding: 16px 12px 32px; gap: 14px; }
  .card { padding: 18px 16px; }
  form button[type="submit"], #estimate-btn, #book-estimate-btn { width: 100%; }
  table { font-size: 13px; }
  th, td { padding: 8px 5px; }
}
