/* Aποστολή Εγγράφων — page-scoped styles (πρότυπο: home.css).
   Όλα από tokens του site.css (:root + dark block) — μηδέν hardcoded χρώματα. */

/* Κριμένο honeypot (off-screen — οι autofill bots το βλέπουν, οι χρήστες όχι) */
.eg-hp {
  position: absolute;
  left: -5000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Drop zone — label κουμπί πάνω από κρυφή input (keyboard: Tab→input, Enter/Space σε label) */
.eg-dropzone {
  display: block;
  margin-top: 16px;
  padding: 28px 22px;
  text-align: center;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--r-card);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.eg-dropzone label {
  display: block;
  cursor: pointer;
  font-size: 15.5px;
  color: var(--text);
}
.eg-dropzone label strong { color: var(--link); }
.eg-dropzone .eg-drop-ico {
  display: block;
  margin-bottom: 6px;
  font-size: 1.6rem;
  color: var(--accent);
}
.eg-dropzone .eg-dropzone-help { display: block; margin-top: 10px; }
.eg-dropzone:hover,
.eg-dropzone.is-over {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 3.5px color-mix(in srgb, var(--accent) 14%, transparent);
}
.eg-dropzone:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3.5px color-mix(in srgb, var(--accent) 16%, transparent);
}

/* Κρυμή file input (παραμένει reachable στο Tab — clip, όχι display:none) */
.eg-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Λίστα επιλεγμένων αρχείων */
.eg-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.eg-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-btn);
  background: var(--bg-alt);
  font-size: 14px;
}
.eg-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.eg-size {
  margin-left: auto;
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
}
.eg-remove {
  appearance: none;
  flex: none;
  width: 30px;
  height: 30px;
  font: inherit;
  font-size: 13px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.eg-remove:hover {
  border-color: var(--badge-loss-text);
  color: var(--badge-loss-text);
}
.eg-total {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

/* Progress */
.eg-progress {
  margin-top: 14px;
  height: 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--line) 70%, transparent);
  overflow: hidden;
}
.eg-bar {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: var(--accent);
  transition: width 0.2s ease;
}

/* Επιτυχία + κωδικός */
.eg-success {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px dashed var(--line);
}
.eg-success-t {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--badge-win-text);
}
.eg-code { margin: 8px 0 4px; }
.eg-code code {
  display: inline-block;
  padding: 0.25em 0.6em;
  border-radius: var(--r-btn);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: clamp(1.6rem, 4.5vw, 2.3rem);
  font-weight: 700;
  letter-spacing: 0.06em;
}
.eg-success .form-confirm { max-width: 60ch; }
.eg-success .small { max-width: 60ch; }