@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&family=Poppins:wght@400;500;600;700&display=swap');
/* ============================================================
   New Light Coffee Bar — brand theme
   Dusty denim blue + warm cream. Light, airy, modern.
   Brand/display font: Fredoka (rounded, matches the logo wordmark)
   UI/body font: Poppins
   ============================================================ */
:root {
  --font-brand: 'Fredoka', 'Poppins', system-ui, sans-serif;
  --font-ui: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* brand core */
  --brand: #5c7da6;          /* dusty blue (logo) */
  --brand-600: #4d6c93;
  --brand-700: #3e5b7f;
  --brand-ink: #2e4864;      /* deep blue — headings */

  /* surfaces */
  --cream: #f4efe4;          /* warm page cream (logo bg) */
  --cream-soft: #faf7ef;
  --card: #ffffff;
  --card-tint: #fbf9f4;      /* zebra rows / subtle fills */

  /* text */
  --ink: #33465c;            /* body text (slate blue) */
  --muted: #8a93a3;

  /* lines + state */
  --border: #e7e1d4;
  --border-soft: #efeadf;
  --accent: var(--brand);
  --accent-2: var(--brand-700);
  --danger: #c1584e;
  --danger-bg: #f7e6e3;
  --positive: #5e8f73;
  --positive-bg: #e3efe7;

  /* elevation */
  --shadow: 0 12px 30px rgba(46, 72, 100, 0.10);
  --shadow-sm: 0 4px 14px rgba(46, 72, 100, 0.07);

  /* legacy aliases (older markup still references these) */
  --bg-start: #f7f3ea;
  --bg-mid: #f1ebde;
  --bg-end: #ece4d5;
  --coffee-900: var(--brand-ink);
  --coffee-500: var(--brand-600);
  --cream-50: #ffffff;
  --sage-500: var(--positive);
}

body.theme-cafe,
body {
  background:
    radial-gradient(1200px 600px at 15% -10%, var(--bg-start) 0%, var(--bg-mid) 45%, var(--bg-end) 100%) fixed;
  color: var(--ink);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- headings & text ---------- */
h1, h2, h3 { color: var(--brand-ink); letter-spacing: -0.01em; font-family: var(--font-brand); }
h1 { font-size: 24px; font-weight: 800; }
h2 { font-size: 19px; font-weight: 700; }
h3 { font-size: 16px; font-weight: 700; }

.subtitle { color: var(--muted); font-size: 15px; }
.section-title { color: var(--brand-ink); font-weight: 700; }
label { color: var(--brand-ink); font-size: 14px; font-weight: 600; }

a { color: var(--brand-600); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--brand-ink); }

.content { padding: 16px; }
@media (min-width: 900px) { .content { padding: 24px; } }

/* ---------- brand header strip ---------- */
.page-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 6px 0 18px;
  padding: 12px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  border-radius: 14px;
  color: var(--brand-ink);
  box-shadow: var(--shadow-sm);
}
.page-brand img {
  width: 38px; height: 38px;
  border-radius: 10px; object-fit: cover;
  border: 1px solid var(--border);
  background: var(--cream);
}
.page-brand-text {
  font-family: var(--font-brand);
  font-size: 18px; font-weight: 700;
  color: var(--brand-ink); letter-spacing: 0.01em;
}

/* ---------- cards ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 16px;
}

/* ---------- pills / badges ---------- */
.pill, .badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: #eef2f8;
  color: var(--brand-700);
  font-size: 12px;
  font-weight: 600;
}
.badge.positive, .pill.positive { background: var(--positive-bg); color: #2f5a45; }

/* ---------- tables ---------- */
.table-wrap {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow-x: auto;
  background: var(--card);
  box-shadow: var(--shadow-sm);
}
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--card);
}
table th, table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 13px;
  text-align: left;
  white-space: nowrap;
}
th {
  background: var(--cream-soft);
  color: var(--brand-ink);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
table td { color: var(--ink); }
table thead th:first-child { border-top-left-radius: 14px; }
table thead th:last-child { border-top-right-radius: 14px; }
table tbody tr:nth-child(even) td { background: var(--card-tint); }
table tbody tr:hover td { background: #eef2f8; }
table tbody tr:last-child td:first-child { border-bottom-left-radius: 14px; }
table tbody tr:last-child td:last-child { border-bottom-right-radius: 14px; }

/* ---------- buttons ---------- */
button, button.primary, .checkout, .row-btn {
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease, box-shadow 0.15s ease;
  box-shadow: 0 2px 6px rgba(46, 72, 100, 0.15);
}
button:hover, button.primary:hover, .checkout:hover, .row-btn:hover { background: var(--brand-700); }
button:active { transform: translateY(1px); }

button.secondary, .row-btn.secondary {
  background: var(--card);
  color: var(--brand-700);
  border: 1px solid var(--brand);
  box-shadow: none;
}
button.secondary:hover { background: #eef2f8; }

.row-btn { padding: 6px 12px; font-size: 13px; }
.row-btn.danger, button.danger { background: var(--danger); color: #fff; }
.row-btn.danger:hover, button.danger:hover { background: #a9463d; }

.btn-positive { background: var(--positive); color: #fff; }

/* ---------- form fields ---------- */
input, select, textarea {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
select { color: var(--ink); }
input::placeholder, textarea::placeholder { color: var(--muted); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(92, 125, 166, 0.18);
}

/* ---------- status / alerts ---------- */
.status { color: var(--muted); font-size: 13px; }
.positive, .status-positive { color: var(--positive); }
.low { color: var(--danger); font-weight: 600; }
.low-row, tr.low td { background: var(--danger-bg); }

/* ---------- sidebar base (recolored in sidebar.css brand block) ---------- */
.sidebar { background: var(--brand); border-right: 1px solid rgba(0, 0, 0, 0.10); }
.menu-toggle { background: var(--brand); color: #fff; }
