/* Στατική σελίδα εγγράφων Μ.Ε.Ο.ΕΛ. Αττικής */
:root {
  --bg: #eef2f7;
  --surface: #ffffff;
  --surface-soft: rgba(255, 255, 255, .92);
  --primary: #0c2d6b;
  --primary-2: #1140a2;
  --accent: #1f5fd1;
  --text: #14213d;
  --muted: #5b6785;
  --border: rgba(12, 45, 107, .11);
  --border-strong: rgba(17, 64, 162, .25);
  --shadow: 0 18px 44px rgba(12, 45, 107, .12);
  --radius: 24px;
  --success: #0b7a45;
  --danger: #b42318;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  color: var(--text);
  font-family: "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(31, 95, 209, .10), transparent 28%),
    radial-gradient(circle at top right, rgba(12, 45, 107, .09), transparent 25%),
    linear-gradient(180deg, #f7f9fc 0%, var(--bg) 100%);
}
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }

.page {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 48px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 28px 30px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 30px;
  color: #fff;
  background: linear-gradient(135deg, rgba(12,45,107,.98), rgba(22,77,185,.93));
  box-shadow: var(--shadow);
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.065);
}
.hero::before { width: 300px; height: 300px; top: -125px; right: -100px; }
.hero::after { width: 180px; height: 180px; left: -70px; bottom: -90px; }

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.hero-logo-wrap {
  flex: 0 0 104px;
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 20px;
  background: rgba(255,255,255,.13);
}
.hero-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.hero-copy { flex: 1 1 520px; }
.hero-copy h1 {
  margin: 0 0 9px;
  font-size: clamp(28px, 4vw, 43px);
  line-height: 1.11;
  letter-spacing: -.02em;
}
.hero-copy p {
  max-width: 790px;
  margin: 0;
  color: rgba(255,255,255,.93);
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.6;
}
.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-top: 17px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 12px;
  color: #fff;
  background: rgba(255,255,255,.10);
  text-decoration: none;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease;
}
.back-link:hover { transform: translateY(-1px); background: rgba(255,255,255,.19); }

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 28px 0 14px;
  flex-wrap: wrap;
}
.section-title {
  margin: 0;
  color: var(--primary);
  font-size: 25px;
  line-height: 1.22;
}
.section-subtitle {
  max-width: 720px;
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.55;
}
.count-badge {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(31,95,209,.14);
  border-radius: 999px;
  color: var(--primary-2);
  background: rgba(31,95,209,.09);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.control-panel {
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-soft);
  box-shadow: var(--shadow);
}
.field-label {
  display: block;
  margin: 0 0 7px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
}
.search-input {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: 13px;
  outline: none;
  color: var(--text);
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.search-input::placeholder { color: #8691a9; }
.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(31,95,209,.12);
}
.action-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-2), var(--accent));
  box-shadow: 0 8px 16px rgba(17,64,162,.17);
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  transition: transform .2s ease, filter .2s ease, background .2s ease;
}
.button:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.03); }
.button.secondary {
  color: var(--primary);
  border-color: rgba(17,64,162,.18);
  background: #fff;
  box-shadow: none;
}
.button.ghost {
  color: var(--primary);
  border-color: transparent;
  background: rgba(17,64,162,.08);
  box-shadow: none;
}
.button.download-all { margin-left: auto; }
.status {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.status.success { color: var(--success); font-weight: 700; }
.status.error { color: var(--danger); font-weight: 700; }

.documents-list {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.document-row {
  display: grid;
  grid-template-columns: 30px 46px minmax(0,1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 88px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  transition: background .18s ease;
}
.document-row:last-child { border-bottom: 0; }
.document-row:hover { background: #f7faff; }
.document-row[hidden] { display: none; }

.select-control {
  position: relative;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  cursor: pointer;
}
.doc-checkbox {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.doc-checkmark {
  display: block;
  width: 21px;
  height: 21px;
  border: 2px solid #9aabc9;
  border-radius: 7px;
  background: #fff;
  transition: border-color .18s ease, background .18s ease;
}
.doc-checkbox:focus-visible + .doc-checkmark {
  outline: 3px solid rgba(31,95,209,.28);
  outline-offset: 2px;
}
.doc-checkbox:checked + .doc-checkmark {
  border-color: var(--accent);
  background: var(--accent);
}
.doc-checkbox:checked + .doc-checkmark::after {
  content: "";
  display: block;
  width: 9px;
  height: 5px;
  margin: 5px 0 0 4px;
  border: solid #fff;
  border-width: 0 0 2px 2px;
  transform: rotate(-45deg);
}
.document-number {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--primary-2);
  background: #edf3ff;
  font-size: 13px;
  font-weight: 900;
}
.document-content { min-width: 0; }
.document-title {
  margin: 0;
  color: var(--primary);
  font-size: 16px;
  line-height: 1.35;
}
.document-detail {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}
.category-tag {
  color: #37517e;
  font-weight: 700;
}
.type-badge {
  padding: 2px 7px;
  border: 1px solid rgba(17,64,162,.13);
  border-radius: 999px;
  color: var(--primary-2);
  background: rgba(17,64,162,.06);
  font-size: 11px;
  font-weight: 900;
}
.document-download { min-width: 124px; }
.empty-state {
  margin-top: 16px;
  padding: 24px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
  background: rgba(255,255,255,.70);
}
.footer-note {
  margin: 28px 0 0;
  color: #6b7690;
  font-size: 13px;
  text-align: center;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  white-space: nowrap;
  clip: rect(0,0,0,0);
  border: 0;
}

@media (max-width: 720px) {
  .page { width: min(100% - 22px, 1200px); padding-top: 12px; }
  .hero { padding: 22px 18px; border-radius: 22px; }
  .hero-logo-wrap { flex-basis: 76px; width: 76px; height: 76px; padding: 7px; border-radius: 16px; }
  .hero-copy { flex-basis: 220px; }
  .hero-copy h1 { font-size: 28px; }
  .control-panel { padding: 14px; border-radius: 18px; }
  .action-row { align-items: stretch; }
  .action-row .button { flex: 1 1 160px; }
  .button.download-all { margin-left: 0; }
  .documents-list { border-radius: 18px; }
  .document-row {
    grid-template-columns: 28px 38px minmax(0,1fr);
    gap: 10px;
    min-height: 0;
    padding: 14px;
  }
  .document-actions { grid-column: 3; }
  .document-download { width: 100%; }
  .document-title { font-size: 15px; }
  .document-detail { flex-wrap: wrap; }
}
