* { box-sizing: border-box; }
:root {
  color-scheme: dark;
  --bg: #0a0e14;
  --bg-2: #0f141c;
  --card: #121922;
  --card-2: #172030;
  --text: #e6edf3;
  --muted: #8b98a8;
  --border: #1f2a38;
  --border-2: #2a3848;
  --accent: #22d3ee;
  --accent-strong: #06b6d4;
  --accent-soft: rgba(34, 211, 238, .12);
  --on-accent: #041318;
  --ok: #34d399;
  --ok-soft: rgba(52, 211, 153, .12);
  --err: #f87171;
  --radius: 14px;
}
html { background: var(--bg); }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(34, 211, 238, .08), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.45;
}
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--on-accent); }

.center { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 16px; }
.container { max-width: 960px; margin: 0 auto; padding: 28px 16px 64px; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: var(--radius);
  margin-bottom: 16px;
}
.narrow { width: 100%; max-width: 380px; padding: 32px 28px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-2.tight { gap: 12px; }
@media (max-width: 700px) {
  .grid-2 { grid-template-columns: 1fr; }
  .card { padding: 20px; }
}

h1 { margin: 0 0 4px; font-size: 1.5rem; letter-spacing: -.02em; }
#login-view h1::before {
  content: "";
  display: block;
  width: 28px; height: 3px;
  margin-bottom: 18px;
  border-radius: 2px;
  background: var(--accent);
}
h2 { font-size: 1.05rem; margin: 0 0 16px; letter-spacing: -.01em; }
#projects-title { margin: 12px 0 14px; color: var(--muted); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
h3 { margin: 0; font-size: 1.1rem; letter-spacing: -.01em; }
h4 { margin: 22px 0 6px; font-size: .75rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.muted { color: var(--muted); font-size: .9rem; margin: 4px 0 0; }
#login-view .muted { margin-bottom: 24px; }
.error { color: var(--err); margin: 12px 0 0; font-size: .9rem; }

label { display: block; margin-bottom: 14px; font-size: .85rem; color: var(--muted); }
input, select, textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 11px 12px;
  border: 1px solid var(--border-2);
  border-radius: 10px;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg-2);
  transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: #5b6878; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
input[type="date"] { min-height: 44px; }
textarea { min-height: 76px; resize: vertical; }

button {
  width: 100%;
  padding: 12px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: var(--on-accent);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, transform .05s;
}
button:hover { background: var(--accent-strong); }
button:active { transform: translateY(1px); }
button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button:disabled { opacity: .5; cursor: default; }
button.ghost {
  width: auto;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-2);
  padding: 7px 12px;
  font-size: .85rem;
  font-weight: 500;
}
button.ghost:hover { border-color: var(--accent); color: var(--accent); background: transparent; }
button.small { width: auto; padding: 5px 10px; font-size: .8rem; }

.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: rgba(10, 14, 20, .85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.topbar > strong { font-size: 1rem; letter-spacing: -.01em; }
.topbar > strong::first-letter { color: var(--accent); }
.topbar-right { display: flex; align-items: center; gap: 10px; font-size: .9rem; }
.badge {
  background: var(--accent-soft);
  color: var(--accent);
  padding: 3px 9px;
  border-radius: 99px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .02em;
}

#admin-panel { margin-bottom: 8px; }

.project { transition: border-color .15s; }
.project:hover { border-color: var(--border-2); }
.project-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.project-head select { width: auto; margin: 0; padding: 7px 10px; font-size: .85rem; }

.steps { display: flex; list-style: none; padding: 0; margin: 18px 0 0; gap: 6px; }
.steps li {
  position: relative;
  flex: 1; text-align: center;
  padding: 16px 4px 0;
  font-size: .78rem;
  color: var(--muted);
}
.steps li::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px; border-radius: 2px;
  background: var(--border-2);
}
.steps li.done { color: var(--text); font-weight: 600; }
.steps li.done::before { background: var(--accent); }

.requests { list-style: none; padding: 0; margin: 0 0 12px; }
.requests li {
  display: flex; justify-content: space-between; gap: 12px; align-items: flex-start;
  padding: 12px 0; border-bottom: 1px solid var(--border); font-size: .92rem;
}
.requests li:last-child { border-bottom: 0; }
.requests li.is-done .r-body { text-decoration: line-through; color: var(--muted); }
.r-body { white-space: pre-wrap; word-break: break-word; }
.r-date { display: block; font-size: .75rem; color: var(--muted); margin-top: 3px; }
.r-tag {
  font-size: .72rem; font-weight: 600; color: var(--ok);
  background: var(--ok-soft); padding: 3px 8px; border-radius: 99px;
  white-space: nowrap;
}
.request-form { margin-top: 4px; }
.request-form textarea { margin: 0 0 10px; }

/* Λίστες admin (λογαριασμοί, πελατολόγιο) */
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.section-head h2 { margin: 0; display: flex; align-items: center; gap: 8px; }
.rows { list-style: none; padding: 0; margin: 0; }
#contacts { margin-top: 20px; border-top: 1px solid var(--border); }
.rows li {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--border); font-size: .92rem;
}
.rows li:last-child { border-bottom: 0; }
.rows li > div { min-width: 0; word-break: break-word; }
button.danger:hover { border-color: var(--err); color: var(--err); }
