/* Προσωρινή εμφάνιση του σκελετού.
   Το χρώμα έμφασης αλλάζει από ΕΝΑ σημείο: τη μεταβλητή --accent. */

:root {
  --accent: #0f766e;
  --bg: #f3f5f8;
  --card: #ffffff;
  --text: #1f2933;
  --muted: #6b7785;
  --line: #e6e9ee;
  --error: #b42318;
  --radius: 18px;
  --shadow: 0 6px 20px rgba(31, 41, 51, 0.07);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

a { color: var(--accent); text-decoration: none; }

.page {
  max-width: 640px;
  margin: 0 auto;
  padding: 20px 16px calc(96px + env(safe-area-inset-bottom));
}

h1 { font-size: 1.5rem; margin: 8px 0 16px; }
h2 { font-size: 1.05rem; margin: 24px 0 10px; color: var(--muted); font-weight: 600; }

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  margin-bottom: 16px;
}

.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.error { color: var(--error); margin: 6px 0; font-size: 0.9rem; }
.errorlist { color: var(--error); padding-left: 18px; }

/* Φόρμες */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 0.9rem; color: var(--muted); margin-bottom: 4px; }

input[type="text"], input[type="password"], input[type="email"], input[type="search"],
input[type="tel"], input[type="number"], select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafbfc;
  font: inherit;
  color: inherit;
}

input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  background: #fff;
}

.btn {
  display: inline-block;
  padding: 12px 20px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.btn-plain { background: transparent; color: var(--muted); }

.search { display: flex; gap: 8px; margin-bottom: 16px; }
.search input { flex: 1; background: var(--card); }

/* Αρχική */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat { display: flex; flex-direction: column; margin-bottom: 0; color: inherit; }
.stat-number { font-size: 1.9rem; font-weight: 700; color: var(--accent); }
.stat-label { color: var(--muted); }

/* Λίστες */
.list { padding: 4px 18px; }
.list-row {
  display: flex;
  flex-direction: column;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
}
.list-row:last-child { border-bottom: 0; }
.list-main { font-weight: 600; }
.list-sub { color: var(--muted); font-size: 0.9rem; }

/* Καρτέλα προσώπου */
.details { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; }
.details dt { color: var(--muted); }
.details dd { margin: 0; }

/* Είσοδος */
.login-wrap { padding-top: 12vh; }

/* Κάτω μπάρα πλοήγησης */
.bottom-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 10px 8px calc(10px + env(safe-area-inset-bottom));
  background: var(--card);
  box-shadow: 0 -4px 16px rgba(31, 41, 51, 0.06);
}
.bottom-nav a, .bottom-nav button {
  padding: 8px 12px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.95rem;
  color: var(--muted);
  cursor: pointer;
}
.bottom-nav form { margin: 0; }
.bottom-nav .nav-add {
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 8px 18px;
  font-weight: 600;
}
