/* Phase C — Minimal mobile-first PWA styles. Large touch targets, clean cards. */

:root {
  --bg: #0f172a;
  --card: #1e2937;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --accent: #0ea5e9;
  --success: #22c55e;
  --danger: #ef4444;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif; }
body { padding-bottom: 80px; }

header {
  position: sticky; top: 0; z-index: 10;
  background: #0b1220; border-bottom: 1px solid #334155;
  padding: 12px 16px; display: flex; align-items: center; gap: 12px;
}
header h1 { margin: 0; font-size: 18px; }
header .right { margin-left: auto; font-size: 12px; color: var(--muted); }

nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 20;
  background: #0b1220; border-top: 1px solid #334155;
  display: flex;
}
nav button {
  flex: 1; padding: 14px 8px; background: none; border: none; color: var(--muted);
  font-size: 13px; touch-action: manipulation;
}
nav button.active { color: var(--accent); font-weight: 600; }

.container { padding: 16px; max-width: 720px; margin: 0 auto; }

.card {
  background: var(--card); border-radius: 12px; padding: 14px; margin-bottom: 14px;
  box-shadow: 0 1px 2px rgba(0,0,0,.3);
}
.card h2 { margin: 0 0 8px; font-size: 15px; color: var(--accent); }
.card .value { font-size: 28px; font-weight: 700; line-height: 1; }
.card .sub { font-size: 12px; color: var(--muted); margin-top: 4px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }

button, .btn {
  background: var(--accent); color: #0b1220; border: none; border-radius: 8px;
  padding: 12px 16px; font-size: 15px; font-weight: 600; touch-action: manipulation;
}
button.secondary { background: #334155; color: var(--text); }
button.danger { background: var(--danger); color: white; }

input, select, textarea {
  width: 100%; padding: 12px; border-radius: 8px; border: 1px solid #475569;
  background: #0f172a; color: var(--text); font-size: 16px;
}
label { display: block; font-size: 12px; color: var(--muted); margin: 8px 0 4px; }

.row { display: flex; gap: 10px; }
.row > * { flex: 1; }

.list { background: var(--card); border-radius: 12px; overflow: hidden; }
.list .item {
  padding: 12px 14px; border-bottom: 1px solid #334155; display: flex; gap: 10px; align-items: center;
}
.list .item:last-child { border-bottom: none; }
.list .meta { font-size: 12px; color: var(--muted); }
.list .hours { font-weight: 700; margin-left: auto; white-space: nowrap; }

.status { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: #334155; color: var(--muted); }
.status.ok { background: #052e16; color: var(--success); }
.status.err { background: #3f1a1a; color: var(--danger); }

.flash { padding: 10px 12px; border-radius: 8px; margin: 10px 0; font-size: 13px; }
.flash.ok { background: #052e16; color: var(--success); }
.flash.err { background: #3f1a1a; color: var(--danger); }

.hidden { display: none !important; }

.sync-bar { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.sync-bar .last { font-size: 12px; color: var(--muted); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-grid .full { grid-column: 1 / -1; }

@media (max-width: 380px) {
  .card .value { font-size: 24px; }
}
