/* Τα χρώματα και τα γράμματα των Δελφών, για να φαίνεται ένα πράγμα μαζί τους. */

@font-face {
  font-family: 'Commissioner';
  src: url('/fonts/commissioner-greek-wght-normal.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0370-03FF;
}
@font-face {
  font-family: 'Commissioner';
  src: url('/fonts/commissioner-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}
@font-face {
  font-family: 'GFS Didot';
  src: url('/fonts/gfs-didot-greek-400-normal.woff2') format('woff2');
  font-display: swap;
  unicode-range: U+0370-03FF;
}
@font-face {
  font-family: 'GFS Didot';
  src: url('/fonts/gfs-didot-latin-400-normal.woff2') format('woff2');
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F;
}

:root {
  color-scheme: dark;
  --bg: #04100c;
  --glass: rgba(10, 30, 23, 0.72);
  --field: rgba(150, 220, 190, 0.06);
  --field-hover: rgba(150, 220, 190, 0.11);
  --line: rgba(168, 232, 200, 0.13);
  --line-2: rgba(168, 232, 200, 0.26);
  --text: #e8f3ec;
  --text-2: #b6cbbf;
  --text-3: #7f998c;
  --mint: #8bf5c8;
  --emerald: #3fdb9b;
  --emerald-wash: rgba(63, 219, 155, 0.14);
  --gold: #e6c982;
  --gold-wash: rgba(230, 201, 130, 0.14);
  --amber: #f0b95a;
  --amber-wash: rgba(240, 185, 90, 0.14);
  --terracotta: #f08368;
  --terracotta-wash: rgba(240, 131, 104, 0.15);
  --radius: 16px;
  --radius-sm: 10px;
  --ui: 'Commissioner', 'Segoe UI', system-ui, sans-serif;
  --display: 'GFS Didot', 'Palatino Linotype', Georgia, serif;
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  margin: 0;
}
body {
  background: radial-gradient(1200px 700px at 80% -10%, rgba(23, 131, 92, 0.22), transparent 60%), var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font: 15px/1.5 var(--ui);
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
p,
ol {
  margin: 0;
  padding: 0;
}
ol {
  list-style: none;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
a {
  color: inherit;
}
.num {
  font-variant-numeric: tabular-nums;
}
.spacer {
  flex: 1;
}
.muted {
  color: var(--text-3);
}
.strong {
  font-weight: 600;
  color: var(--text);
}
.nowrap {
  white-space: nowrap;
}

/* ---------------------------------------------------------------- σύνδεση */

.gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.gate__box {
  width: min(400px, 100%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass);
}
.gate__mark {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.gate__title {
  font: 400 32px/1.15 var(--display);
}
.gate__intro {
  color: var(--text-2);
  font-size: 14px;
}

/* ---------------------------------------------------------------- στοιχεία */

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.field__label {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-3);
}
.field__hint {
  font-size: 12px;
  color: var(--text-3);
}
.input,
.select,
.textarea {
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--field);
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}
.select {
  width: auto;
  max-width: 260px;
}
.select option {
  background: #07160f;
}
.textarea {
  display: block;
  resize: vertical;
  line-height: 1.45;
}
.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--emerald);
  background: var(--field-hover);
}
.input::placeholder,
.textarea::placeholder {
  color: var(--text-3);
}
.btn {
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: var(--field);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
}
.btn:hover:not(:disabled) {
  background: var(--field-hover);
}
.btn:disabled {
  opacity: 0.45;
  cursor: default;
}
.btn--small {
  min-height: 32px;
  padding: 4px 12px;
  font-size: 13px;
}
.btn--primary {
  border-color: transparent;
  background: var(--emerald);
  color: #04221a;
  font-weight: 600;
}
.btn--primary:hover:not(:disabled) {
  background: var(--mint);
}
.btn--wide {
  width: 100%;
}
.btn--next {
  min-width: 170px;
}
.link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-3);
  cursor: pointer;
  font-size: 13px;
}
.link:hover {
  color: var(--text);
}
.link-out {
  margin-left: 10px;
  color: var(--mint);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.info__value .link-out:first-child {
  margin-left: 0;
}
.check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  color: var(--text-2);
  cursor: pointer;
  white-space: nowrap;
}
.check input {
  accent-color: var(--emerald);
}
.pill {
  display: inline-block;
  padding: 2px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  color: var(--text-2);
  white-space: nowrap;
}
.pill[data-tone='good'] {
  border-color: transparent;
  background: var(--emerald-wash);
  color: var(--mint);
}
.pill[data-tone='mint'] {
  border-color: var(--line-2);
  color: var(--mint);
}
.pill[data-tone='gold'] {
  border-color: transparent;
  background: var(--gold-wash);
  color: var(--gold);
}
.pill[data-tone='amber'] {
  border-color: transparent;
  background: var(--amber-wash);
  color: var(--amber);
}
.pill[data-tone='bad'] {
  border-color: transparent;
  background: var(--terracotta-wash);
  color: var(--terracotta);
}
kbd {
  display: inline-block;
  min-width: 18px;
  margin-right: 8px;
  padding: 0 4px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  font: 11px/16px var(--ui);
  color: var(--text-3);
  text-align: center;
}

/* ---------------------------------------------------------------- πλαίσιο */

.shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.bar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 10px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(4, 16, 12, 0.88);
  backdrop-filter: blur(10px);
}
.bar__brand {
  font: 400 22px/1 var(--display);
  color: var(--gold);
}
.tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tab {
  padding: 7px 14px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--text-2);
  cursor: pointer;
  white-space: nowrap;
}
.tab:hover {
  background: var(--field);
}
.tab--on {
  background: var(--emerald-wash);
  color: var(--mint);
}
.tab__badge {
  display: inline-block;
  min-width: 19px;
  margin-left: 7px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--amber);
  color: #2a1a02;
  font-size: 12px;
  font-weight: 700;
  line-height: 19px;
  text-align: center;
}
.bar__me {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
}
.bar__name {
  font-size: 14px;
  color: var(--text-2);
}
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 18px 24px 32px;
}
.section-title {
  font: 400 22px/1.2 var(--display);
}
.section-title--gap {
  margin-top: 10px;
}
.page-hint {
  font-size: 13px;
  max-width: 760px;
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.input--search {
  flex: 1;
  min-width: 240px;
}
.segments {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.segment {
  padding: 5px 13px;
  border: 0;
  border-radius: 7px;
  background: none;
  color: var(--text-2);
  cursor: pointer;
  font-size: 14px;
}
.segment--on {
  background: var(--emerald-wash);
  color: var(--mint);
}
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 56px 24px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  text-align: center;
}

/* ---------------------------------------------------------------- επιλογή */

.choice {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass);
}
.choice__top,
.choice__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.choice__top {
  justify-content: space-between;
}
.choice--closed {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
}
.choice__summary {
  flex: 1;
  min-width: 200px;
  font-size: 14px;
  color: var(--text-2);
}
.choice__label {
  margin-right: 8px;
  color: var(--text-3);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.chip {
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--field);
  color: var(--text-2);
  cursor: pointer;
  font-size: 14px;
}
.chip:hover {
  border-color: var(--line-2);
}
.chip--on {
  border-color: transparent;
  background: var(--emerald);
  color: #04221a;
  font-weight: 600;
}
.chip__n {
  margin-left: 7px;
  font-size: 12px;
  opacity: 0.65;
}
.counters {
  display: flex;
  gap: 22px;
}
.counter {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 13px;
  color: var(--text-3);
  white-space: nowrap;
}
.counter b {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
}
.counter .num--gold {
  color: var(--gold);
}

/* ---------------------------------------------------------------- καρτέλα */

.calls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.calls:empty {
  display: none;
}
.calls > .empty {
  grid-column: 1 / -1;
}
.side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass);
}
.card--call {
  position: sticky;
  top: 70px;
  border-color: var(--line-2);
}
.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.card__name {
  font: 400 30px/1.15 var(--display);
  overflow-wrap: anywhere;
}
.card__also {
  font-size: 13px;
  color: var(--text-3);
}
.card__title {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.card__title--gap {
  margin-top: 8px;
}
.phone {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--emerald-wash);
}
.phone__number {
  font-size: 34px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--mint);
  text-decoration: none;
}
.phone__number:hover {
  text-decoration: underline;
}
.alert {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--terracotta-wash);
  color: var(--terracotta);
  font-size: 14px;
}
.alert--amber {
  background: var(--amber-wash);
  color: var(--amber);
}
.alert--gold {
  background: var(--gold-wash);
  color: var(--gold);
}
.infos {
  display: flex;
  flex-direction: column;
}
.info {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.info__label {
  color: var(--text-3);
}
.info__value {
  overflow-wrap: anywhere;
}
.flag {
  color: var(--gold);
}
.stars {
  color: var(--gold);
  font-weight: 600;
}
.outcomes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}
.outcome {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--field);
  cursor: pointer;
  text-align: left;
  transition: background 0.12s, border-color 0.12s;
}
.outcome:hover:not(:disabled) {
  background: var(--field-hover);
}
.outcome:disabled {
  opacity: 0.4;
  cursor: default;
}
.outcome--on {
  border-color: var(--mint);
  background: var(--emerald-wash);
  color: var(--mint);
}
.outcome--on[data-tone='bad'] {
  border-color: var(--terracotta);
  background: var(--terracotta-wash);
  color: var(--terracotta);
}
.outcome--on[data-tone='amber'] {
  border-color: var(--amber);
  background: var(--amber-wash);
  color: var(--amber);
}
.outcome--on[data-tone='gold'] {
  border-color: var(--gold);
  background: var(--gold-wash);
  color: var(--gold);
}
.again {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--field);
}
.again__quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.history {
  display: flex;
  flex-direction: column;
  max-height: 340px;
  overflow-y: auto;
}
.history__item {
  padding: 9px 0;
  border-top: 1px solid var(--line);
}
.history__item:first-child {
  border-top: 0;
}
.history__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.history__who {
  font-weight: 600;
}
.history__when {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-3);
}
.history__note {
  margin-top: 4px;
  font-size: 14px;
  color: var(--text-2);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.history__again {
  margin-top: 3px;
  font-size: 12px;
  color: var(--gold);
}

/* ---------------------------------------------------------------- πίνακες */

.ledger {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass);
}
.ledger table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.ledger th {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line-2);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
  color: var(--text-3);
  white-space: nowrap;
}
.ledger td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--text-2);
  vertical-align: top;
}
.ledger tbody tr:last-child td {
  border-bottom: 0;
}
.ledger tbody tr:not(.plain) {
  cursor: pointer;
}
.ledger tbody tr:not(.plain):hover td {
  background: var(--field);
}
.row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}
.pager {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
.inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.inline-form .input {
  flex: 1;
  min-width: 170px;
}
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}
.tile {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass);
}
.tile__label {
  font-size: 13px;
  color: var(--text-3);
}
.tile__value {
  font-size: 28px;
  font-weight: 600;
}
.feed {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass);
}
.feed__item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  cursor: pointer;
}
.feed__item:first-child {
  border-top: 0;
}
.feed__item:hover {
  background: var(--field);
}
.feed__when {
  font-size: 12px;
  color: var(--text-3);
}
.feed__note {
  flex-basis: 100%;
  white-space: pre-wrap;
}

/* ---------------------------------------------------------------- ημερολόγιο */

.month-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.month-nav__label {
  min-width: 150px;
  text-align: center;
  text-transform: capitalize;
}
.planner {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
  gap: 16px;
  align-items: start;
}
.planner__day {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.card--due {
  border-color: var(--amber);
}
.month {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}
.month__head {
  padding: 8px 10px;
  background: #081a13;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-3);
}
.month__cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-height: 104px;
  min-width: 0;
  padding: 6px 7px;
  border: 0;
  background: #081a13;
  cursor: pointer;
  text-align: left;
}
.month__cell:hover {
  background: #0d241a;
}
.month__cell[data-out='true'] {
  opacity: 0.45;
}
.month__cell[data-on='true'] {
  box-shadow: inset 0 0 0 1px var(--emerald);
}
.month__num {
  font-size: 13px;
  color: var(--text-2);
}
.month__cell[data-today='true'] .month__num {
  color: var(--mint);
  font-weight: 700;
}
.month__item {
  overflow: hidden;
  padding: 1px 5px;
  border-left: 2px solid var(--gold);
  border-radius: 4px;
  background: var(--gold-wash);
  font-size: 11.5px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.month__item[data-due='true'] {
  border-left-color: var(--amber);
  background: var(--amber-wash);
  color: var(--amber);
}
.month__more {
  font-size: 11px;
  color: var(--text-3);
}
.slots {
  display: flex;
  flex-direction: column;
}
.slot {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 10px;
  padding: 9px 4px;
  border-top: 1px solid var(--line);
  cursor: pointer;
}
.slot:first-child {
  border-top: 0;
}
.slot:hover {
  background: var(--field);
}
.slot__time {
  font-weight: 600;
  color: var(--gold);
}
.slot[data-due='true'] .slot__time {
  color: var(--amber);
}
.slot__name {
  overflow-wrap: anywhere;
}
.slot__meta {
  font-size: 13px;
  color: var(--text-3);
}
.slot__note {
  margin-top: 3px;
  font-size: 13px;
  color: var(--text-2);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* ---------------------------------------------------------------- μηνύματα */

#toasts {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: min(420px, calc(100vw - 40px));
}
.toast {
  padding: 10px 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: #0b2219;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.5);
  font-size: 14px;
}
.toast__actions {
  display: flex;
  gap: 6px;
  margin-top: 9px;
}
.toast[data-tone='bad'] {
  border-color: var(--terracotta);
  color: var(--terracotta);
}

/* ---------------------------------------------------------------- στο κινητό */

/* Τα κοινά μικρά παράθυρα. */
.ask {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(2, 8, 6, 0.65);
}
.ask__box {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: min(420px, 100%);
  padding: 22px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: #0b2219;
}

@media (max-width: 960px) {
  .calls,
  .planner {
    grid-template-columns: minmax(0, 1fr);
  }
  .month__cell {
    min-height: 56px;
  }
  .month__item {
    display: none;
  }
  .month__cell[data-due='true'] .month__num,
  .month__cell:has(.month__item) .month__num {
    color: var(--gold);
    font-weight: 700;
  }
  .card--call {
    position: static;
  }
  .bar {
    flex-wrap: wrap;
    gap: 8px 14px;
    padding: 10px 14px;
  }
  .tabs {
    order: 3;
    width: 100%;
  }
  .main {
    padding: 14px;
  }
  .phone__number {
    font-size: 28px;
  }
  .btn--next {
    min-width: 0;
    flex: 1;
  }
}
