/* Forest Padel Club — shared styles. Brand colours sampled from the supplied logo. */
:root {
  --blue: #18558f; --blue-dark: #0f3d69; --blue-soft: #e8f0f8;
  --green: #9ccb3b; --green-soft: #eef6dc; --green-text: #3d5a10;
  --ink: #14202b; --muted: #5b6875; --line: #dde3ea; --bg: #f5f7f9; --card: #fff;
  --warn: #8a5a00; --warn-soft: #fff4d6; --bad: #a3261b; --bad-soft: #fde8e6; --ok: #1f6b34; --ok-soft: #e3f4e7;
  --radius: 14px; --shadow: 0 1px 2px rgba(20,32,43,.06), 0 4px 14px rgba(20,32,43,.06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 16px/1.45 var(--font); color: var(--ink); background: var(--bg); -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5rem; }
h1 { font-size: 1.5rem; } h2 { font-size: 1.2rem; } h3 { font-size: 1.02rem; }
p { margin: .25rem 0 .75rem; }
.muted { color: var(--muted); } .small { font-size: .875rem; } .tiny { font-size: .78rem; }
.hidden { display: none !important; }
.row { display: flex; gap: .5rem; align-items: center; } .wrap { flex-wrap: wrap; } .spread { justify-content: space-between; }
.stack > * + * { margin-top: .75rem; }
.grow { flex: 1; }

/* Demo banner — always visible so nothing is mistaken for real data */
.demo-banner { background: #222; color: #fff; font-size: .78rem; text-align: center; padding: .35rem .75rem; letter-spacing: .01em; }
.demo-banner strong { color: var(--green); }

.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem; }
.card + .card { margin-top: .75rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 46px; padding: .6rem 1.1rem;
  border-radius: 12px; border: 1.5px solid var(--blue); background: var(--blue); color: #fff; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--blue-dark); }
.btn:focus-visible, .chip:focus-visible, .slot:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.btn.secondary { background: #fff; color: var(--blue); }
.btn.secondary:hover { background: var(--blue-soft); }
.btn.danger { background: var(--bad); border-color: var(--bad); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--blue); }
.btn.block { width: 100%; }
.btn.small { min-height: 36px; padding: .35rem .75rem; font-size: .9rem; border-radius: 10px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-hero { min-height: 58px; font-size: 1.1rem; }

label { display: block; font-weight: 600; font-size: .9rem; margin: .6rem 0 .25rem; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=date], input[type=time], input[type=number], input[type=month], input[type=search], select, textarea {
  width: 100%; min-height: 46px; padding: .55rem .75rem; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; }
textarea { min-height: 80px; }
.hint { font-size: .8rem; color: var(--muted); margin-top: .2rem; }

/* Status badges: the word always carries the meaning; colour is a second signal only */
.badge { display: inline-flex; align-items: center; gap: .3rem; font-size: .78rem; font-weight: 700; padding: .2rem .55rem; border-radius: 999px;
  border: 1px solid transparent; white-space: nowrap; }
.badge::before { content: attr(data-icon); font-weight: 800; }
.b-ok { background: var(--ok-soft); color: var(--ok); border-color: #b9dfc3; }
.b-warn { background: var(--warn-soft); color: var(--warn); border-color: #f0d68f; }
.b-bad { background: var(--bad-soft); color: var(--bad); border-color: #f3b9b3; }
.b-info { background: var(--blue-soft); color: var(--blue); border-color: #c4d6ea; }
.b-plain { background: #eef1f4; color: var(--muted); border-color: #dde3ea; }
.b-sample { background: #222; color: #fff; }

.notice { border-radius: 12px; padding: .75rem .9rem; font-size: .92rem; border: 1px solid; }
.notice.info { background: var(--blue-soft); border-color: #c4d6ea; }
.notice.warn { background: var(--warn-soft); border-color: #f0d68f; }
.notice.bad { background: var(--bad-soft); border-color: #f3b9b3; }
.notice.ok { background: var(--ok-soft); border-color: #b9dfc3; }
.notice strong { display: block; margin-bottom: .15rem; }

.kv { display: grid; grid-template-columns: auto 1fr; gap: .35rem .9rem; font-size: .95rem; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 600; text-align: right; }

.empty { text-align: center; padding: 2rem 1rem; color: var(--muted); }
.empty .big { font-size: 2rem; }
.spinner { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; margin: 1.5rem auto; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } }

.toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: .65rem 1rem;
  border-radius: 10px; font-size: .92rem; z-index: 50; max-width: 92vw; box-shadow: var(--shadow); }
.offline { background: var(--warn-soft); color: var(--warn); text-align: center; font-size: .85rem; padding: .4rem; border-bottom: 1px solid #f0d68f; }

.chip { border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: .5rem .7rem; cursor: pointer; min-height: 44px; font-weight: 600; }
.chip[aria-pressed=true] { border-color: var(--blue); background: var(--blue); color: #fff; }
.chip .sub { display: block; font-size: .72rem; font-weight: 500; opacity: .85; }

table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: .5rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; }

dialog { border: 0; border-radius: 16px; padding: 0; width: min(560px, 94vw); box-shadow: 0 20px 60px rgba(0,0,0,.3); }
dialog::backdrop { background: rgba(10,20,30,.45); }
.dlg-head { padding: 1rem 1.1rem .5rem; display: flex; justify-content: space-between; align-items: center; }
.dlg-body { padding: 0 1.1rem 1.1rem; max-height: 75vh; overflow: auto; }
.center { text-align: center; } .mt { margin-top: .75rem; }
