/* back.fasta.live — Minimal dark theme */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}

:root {
  --bg: #0b0f1a;
  --surface: #111827;
  --border: #1e293b;
  --text: #e2e8f0;
  --muted: #64748b;
  --accent: #22d3ee;
  --accent-dim: #0e7490;
  --danger: #f87171;
  --success: #34d399;
  --radius: 8px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
}

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

/* ── Layout ── */
.container { max-width: 720px; margin: 0 auto; padding: 0 20px; }
.page { min-height: 100vh; display: flex; flex-direction: column; }

/* ── Nav ── */
.nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 0; border-bottom: 1px solid var(--border);
}
.nav-brand {
  font-size: 1.1rem; font-weight: 700; color: var(--text);
  display: flex; align-items: center; gap: 8px;
}
.nav-brand .dot { color: var(--accent); }
.nav-link { color: var(--muted); font-size: 0.85rem; }
.nav-link:hover { color: var(--text); text-decoration: none; }

/* ── Cards ── */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; margin-top: 20px;
}

/* ── Forms ── */
label { display: block; font-size: 0.8rem; color: var(--muted); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.05em; }
input[type="text"], input[type="password"] {
  width: 100%; padding: 10px 12px; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text); font-size: 0.95rem;
  margin-bottom: 16px; outline: none; transition: border-color 0.2s;
}
input:focus { border-color: var(--accent); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px; border: none; border-radius: var(--radius);
  font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: all 0.15s;
}
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { background: var(--accent-dim); }
.btn-ghost { background: transparent; color: var(--muted); border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--text); border-color: var(--muted); }
.btn-danger { background: transparent; color: var(--danger); border: 1px solid transparent; padding: 6px 12px; font-size: 0.8rem; }
.btn-danger:hover { border-color: var(--danger); }
.btn-sm { padding: 6px 14px; font-size: 0.8rem; }

/* ── Alerts ── */
.alert { padding: 12px 16px; border-radius: var(--radius); margin-top: 16px; font-size: 0.9rem; }
.alert-error { background: #7f1d1d33; border: 1px solid #991b1b; color: var(--danger); }
.alert-success { background: #064e3b33; border: 1px solid #065f46; color: var(--success); }

/* ── Bucket table ── */
.bucket-table { width: 100%; border-collapse: collapse; margin-top: 16px; }
.bucket-table th {
  text-align: left; font-size: 0.75rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.05em;
  padding: 8px 0; border-bottom: 1px solid var(--border);
}
.bucket-table td {
  padding: 12px 0; border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.bucket-table tr:last-child td { border-bottom: none; }
.bucket-name { font-weight: 600; font-family: "SF Mono", "Fira Code", monospace; }
.object-count { color: var(--accent); font-family: "SF Mono", monospace; }

/* ── Hero (landing) ── */
.hero {
  flex: 1; display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  text-align: center; padding: 60px 20px;
}
.hero h1 { font-size: 2.5rem; font-weight: 800; letter-spacing: -1px; margin-bottom: 12px; }
.hero h1 .light { font-weight: 300; color: var(--muted); }
.hero p { color: var(--muted); font-size: 1.1rem; max-width: 440px; margin-bottom: 32px; }

/* ── Inline form row ── */
.form-row { display: flex; gap: 8px; align-items: flex-end; }
.form-row input { margin-bottom: 0; flex: 1; }

/* ── Footer ── */
.footer { text-align: center; padding: 32px 0; color: var(--muted); font-size: 0.75rem; }

/* ── Empty state ── */
.empty { text-align: center; padding: 40px 0; color: var(--muted); }

/* ── Modal ── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.7);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000; padding: 20px; backdrop-filter: blur(4px);
}

/* ── Duplicati button ── */
.btn-duplicati {
  background: transparent; color: var(--accent); border: 1px solid var(--accent);
  padding: 4px 10px; border-radius: var(--radius); font-size: 0.75rem;
  font-weight: 600; cursor: pointer; transition: all 0.15s;
  margin-right: 4px;
}
.btn-duplicati:hover {
  background: var(--accent); color: var(--bg);
}
