/* v1.6.0 — Συνβήμα style.css — + θεραπευτές, chat */
:root {
  --bg: #F3F6F4;
  --paper: #FFFFFF;
  --ink: #1E2A2B;
  --muted: #5F6F70;
  --line: #D8E1DE;
  --teal: #1F5F5B;
  --teal-soft: #E1EEEC;
  --ochre: #C98A2E;
  --rose: #B85C6E;
  --radius: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 16px; line-height: 1.5; }
.hidden { display: none !important; }
h1, h2, h3 { margin: 0 0 .5rem; line-height: 1.2; }
h2 { font-size: 1.25rem; margin-top: 1.25rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 .75rem; }
.muted { color: var(--muted); font-size: .92rem; }
.pre { white-space: pre-wrap; }
.error { color: var(--rose); min-height: 1.2em; font-size: .92rem; }

.view { min-height: 100dvh; }
.topbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: .5rem;
  padding: .8rem 1rem; padding-top: calc(.8rem + env(safe-area-inset-top));
  background: var(--teal); color: #fff; }
.topbar-title { flex: 1; font-weight: 600; font-size: 1.1rem; }
.btn-icon { background: transparent; border: 0; color: inherit; font-size: 1.4rem; width: 2.2rem; height: 2.2rem;
  border-radius: 50%; cursor: pointer; }
.btn-icon:hover { background: rgba(255,255,255,.15); }
.content { padding: 1rem; padding-bottom: 3rem; max-width: 720px; margin: 0 auto; }
.greet { font-size: 1.05rem; }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem; margin-bottom: 1rem; }
label { display: block; font-size: .9rem; color: var(--muted); margin-bottom: .75rem; }
input, select, textarea { display: block; width: 100%; margin-top: .25rem; padding: .65rem .75rem;
  font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 10px; }
input:focus, select:focus, textarea:focus, button:focus-visible { outline: 3px solid var(--teal-soft); border-color: var(--teal); }
textarea { resize: vertical; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }

.btn { font: inherit; font-weight: 600; padding: .7rem 1rem; border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; transition: background .15s; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: #17504C; }
.btn-outline { background: #fff; color: var(--teal); border-color: var(--teal); }
.btn-outline:hover { background: var(--teal-soft); }
.btn-link { background: transparent; color: var(--teal); font-weight: 500; }
.btn-danger { background: #fff; color: var(--rose); border-color: var(--rose); }
.btn-block { width: 100%; margin-top: .5rem; }
.btn-sm { padding: .4rem .7rem; font-size: .9rem; }
.btn[disabled] { opacity: .6; cursor: default; }

/* auth */
.auth-wrap { min-height: 100dvh; display: flex; flex-direction: column; justify-content: center;
  padding: 1.5rem 1rem; max-width: 420px; margin: 0 auto; }
.brand { text-align: center; margin-bottom: 1.5rem; }
.brand h1 { font-size: 2.4rem; letter-spacing: -.02em; color: var(--teal); }
.brand-sub { color: var(--muted); }
.brand-mark { width: 56px; height: 56px; margin: 0 auto .5rem; border-radius: 50%;
  background: conic-gradient(var(--teal) 0 50%, var(--ochre) 50% 100%); opacity: .9; }
.or { text-align: center; color: var(--muted); font-size: .85rem; margin: .75rem 0; }

/* lists */
.list { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1rem; }
.item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: .8rem 1rem; display: flex; align-items: center; gap: .75rem; }
.item.clickable { cursor: pointer; }
.item.clickable:hover { border-color: var(--teal); }
.item .grow { flex: 1; min-width: 0; }
.item .title { font-weight: 600; }
.item .sub { color: var(--muted); font-size: .88rem; }
.item .actions { display: flex; gap: .4rem; }
.empty { color: var(--muted); font-size: .92rem; padding: .5rem 0; }
.badge { font-size: .78rem; padding: .15rem .5rem; border-radius: 999px; background: var(--teal-soft); color: var(--teal); }
.badge.pending { background: #FBF0DC; color: #8A5A12; }
.badge.rejected { background: #F6E3E7; color: var(--rose); }

/* tabs */
.tabs { display: flex; background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 3.4rem; z-index: 4; }
.tab { flex: 1; padding: .75rem; background: transparent; border: 0; border-bottom: 3px solid transparent;
  font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; }
.tab.active { color: var(--teal); border-bottom-color: var(--teal); }

/* invite code */
.code-row { display: flex; align-items: center; gap: .75rem; }
.code { font-family: ui-monospace, Menlo, monospace; font-size: 1.6rem; letter-spacing: .18em; font-weight: 700;
  color: var(--teal); background: var(--teal-soft); padding: .4rem .8rem; border-radius: 10px; flex: 1; text-align: center; }

/* timeline (ημερολόγιο) */
.timeline { display: flex; flex-direction: column; gap: .4rem; }
.day { margin-top: 1rem; font-weight: 700; color: var(--teal); }
.entry { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem;
  border-left: 5px solid var(--ochre); }
.entry.mine { border-left-color: var(--teal); }
.entry .who { font-size: .85rem; color: var(--muted); margin-bottom: .25rem; }
.entry .who strong { color: var(--ink); }
.entry .text { white-space: pre-wrap; }
.entry .ctx { display: inline-block; margin-left: .4rem; font-size: .78rem; color: var(--muted); }

.toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 10px; opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s; max-width: 90vw; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.version { text-align: center; margin-top: 1rem; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* v1.1.0 additions */
.btn-onteal { color: #fff; border-color: rgba(255,255,255,.7); background: transparent; margin: 0; }
.btn-onteal:hover { background: rgba(255,255,255,.15); }
.has-bottomnav { padding-bottom: 5rem; }
.bottomnav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 5; display: flex; background: var(--paper);
  border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.bnav { flex: 1; padding: .8rem .5rem; background: transparent; border: 0; border-top: 3px solid transparent;
  font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; }
.bnav.active { color: var(--teal); border-top-color: var(--teal); }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: .5rem 0 .75rem; }
.chip { font-size: .85rem; padding: .25rem .65rem; border-radius: 999px; background: var(--teal-soft); color: var(--teal); border: 1px solid transparent; }
.chips.selectable .chip { cursor: pointer; background: #fff; color: var(--muted); border-color: var(--line); font: inherit; font-size: .85rem; }
.chips.selectable .chip.on { background: var(--teal); color: #fff; border-color: var(--teal); }
.contact a { display: block; color: var(--teal); text-decoration: none; padding: .3rem 0; }
.rating { color: var(--ochre); font-weight: 700; margin-bottom: .5rem; }
.rating .n { color: var(--muted); font-weight: 400; font-size: .9rem; margin-left: .3rem; }
.stars { display: flex; gap: .2rem; margin-bottom: .5rem; }
.stars button { font-size: 1.9rem; line-height: 1; background: transparent; border: 0; color: var(--line); cursor: pointer; padding: 0 .1rem; }
.stars button.on { color: var(--ochre); }
.review .head { display: flex; justify-content: space-between; font-size: .88rem; color: var(--muted); margin-bottom: .25rem; }
.review .head strong { color: var(--ink); }
.review .st { color: var(--ochre); }

/* v1.2.0 additions */
.tabs { overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: 0 0 auto; min-width: 20%; padding: .75rem .9rem; white-space: nowrap; }
.score { display: flex; gap: .4rem; margin: -.4rem 0 .9rem; }
.score button { flex: 1; padding: .5rem 0; font: inherit; font-weight: 700; background: #fff; border: 1px solid var(--line);
  border-radius: 10px; color: var(--muted); cursor: pointer; }
.score button.on { background: var(--teal); border-color: var(--teal); color: #fff; }
.entry .tags { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .4rem; }
.tag { font-size: .78rem; padding: .1rem .5rem; border-radius: 999px; background: var(--teal-soft); color: var(--teal); }
.tag.score { background: #FBF0DC; color: #8A5A12; }
.tag.goal { background: #EDE7F6; color: #4B3A7A; }
.goal .meta { font-size: .85rem; color: var(--muted); }
.goal .bar { height: 6px; background: var(--line); border-radius: 3px; margin-top: .4rem; overflow: hidden; }
.goal .bar i { display: block; height: 100%; background: var(--teal); }
.chart svg { width: 100%; height: auto; display: block; }
.trend { font-weight: 700; }
.trend.up { color: #2E7D32; } .trend.down { color: var(--rose); } .trend.flat { color: var(--muted); }

/* v1.3.0 additions */
.rec { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; margin-bottom: .6rem; }
.rec .k { font-size: .82rem; color: var(--muted); margin-bottom: .15rem; }
.rec .v { white-space: pre-wrap; }
.rec.alert { border-left: 5px solid var(--rose); }
.rec.calm { border-left: 5px solid var(--teal); }
.printcard { max-width: 720px; margin: 0 auto; padding: 1rem; background: #fff; color: #111; font-size: 15px; line-height: 1.45; }
.printcard h1 { font-size: 1.6rem; margin: 0 0 .15rem; color: var(--teal); }
.printcard .sub { color: #555; margin-bottom: .8rem; }
.printcard h2 { font-size: 1rem; margin: .9rem 0 .3rem; padding-bottom: .15rem; border-bottom: 2px solid var(--teal); }
.printcard h2.alert { border-color: var(--rose); color: var(--rose); }
.printcard .grid { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem 1rem; }
.printcard p { margin: 0 0 .3rem; white-space: pre-wrap; }
.printcard .foot { margin-top: 1.2rem; font-size: .8rem; color: #666; border-top: 1px solid #ddd; padding-top: .4rem; }
.printcard ul { margin: 0; padding-left: 1.2rem; }
@media print {
  body { background: #fff; }
  .no-print, .toast { display: none !important; }
  .view { display: none !important; }
  #view-card { display: block !important; min-height: 0; }
  .printcard { max-width: none; padding: 0; font-size: 12.5px; }
  .printcard h2 { break-after: avoid; }
}

/* v1.4.0 additions */
.filelabel input { padding: .45rem; background: var(--bg); }
.thumbs { display: flex; flex-wrap: wrap; gap: .4rem; margin: .25rem 0 .75rem; }
.thumbs:empty { display: none; }
.thumb { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; background: var(--teal-soft); border: 1px solid var(--line); cursor: pointer; }
.thumb.vid { display: flex; align-items: center; justify-content: center; color: var(--teal); font-size: 1.6rem; }
.entry .thumbs { margin: .5rem 0 0; }
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; }
.lightbox img, .lightbox video { max-width: 100vw; max-height: 100vh; object-fit: contain; }
#lightbox-close { position: absolute; top: calc(.6rem + env(safe-area-inset-top)); right: .6rem; color: #fff; font-size: 1.3rem; }

/* v1.6.0 additions */
.bnav { font-size: .85rem; padding: .8rem .2rem; position: relative; }
.nbadge { display: inline-block; min-width: 1.15rem; height: 1.15rem; line-height: 1.15rem; padding: 0 .3rem; margin-left: .25rem;
  border-radius: 999px; background: var(--rose); color: #fff; font-size: .72rem; }
label.check { display: flex; align-items: center; gap: .6rem; color: var(--ink); font-size: .95rem; }
label.check input { width: auto; margin: 0; }
.dot { width: .6rem; height: .6rem; border-radius: 50%; background: var(--rose); flex: 0 0 auto; }
.chat-content { padding-bottom: 6.5rem; }
.chat-note { text-align: center; font-size: .8rem; }
.messages { display: flex; flex-direction: column; gap: .35rem; }
.msg { max-width: 82%; padding: .55rem .8rem; border-radius: 14px; white-space: pre-wrap; word-wrap: break-word; }
.msg.me { align-self: flex-end; background: var(--teal); color: #fff; border-bottom-right-radius: 4px; }
.msg.them { align-self: flex-start; background: var(--paper); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg .t { display: block; font-size: .72rem; opacity: .7; margin-top: .15rem; text-align: right; }
.msgday { align-self: center; font-size: .78rem; color: var(--muted); margin: .6rem 0 .2rem; }
.composer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; display: flex; gap: .5rem; align-items: flex-end;
  background: var(--paper); border-top: 1px solid var(--line); padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom)); }
.composer textarea { margin: 0; resize: none; max-height: 7.5rem; }
.composer .btn { flex: 0 0 auto; }
