/* ── Layout ────────────────────────────────────────────── */
.import-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 16px;
  padding: 16px;
  height: calc(100vh - 56px);
  overflow: hidden;
}

.import-sidebar {
  overflow-y: auto;
}

.import-main {
  overflow-y: auto;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  padding: 20px;
}

/* ── Karte ─────────────────────────────────────────────── */
.import-card {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  padding: 16px;
}

.import-card-title {
  font-size: 12px;
  font-weight: 700;
  color: #1e3a5f;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

/* ── Upload-Zone ───────────────────────────────────────── */
.upload-zone {
  border: 2px dashed #d1d5db;
  border-radius: 8px;
  padding: 20px 12px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.upload-zone:hover,
.upload-zone.drag-over {
  border-color: #1e3a5f;
  background: #f0f4f8;
}

.upload-icon  { font-size: 28px; margin-bottom: 6px; }
.upload-label { font-size: 13px; font-weight: 600; color: #374151; }
.upload-sub   { font-size: 11px; color: #9ca3af; margin-top: 2px; }
.upload-formats { font-size: 10px; color: #d1d5db; margin-top: 6px; }

/* ── Import-Typ ────────────────────────────────────────── */
.import-type-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.import-type-option { cursor: pointer; }
.import-type-option input { display: none; }

.import-type-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  transition: border-color 0.15s, background 0.15s;
}

.import-type-option input:checked + .import-type-box {
  border-color: #1e3a5f;
  background: #f0f4f8;
}

.import-type-icon  { font-size: 18px; }
.import-type-label { font-size: 12px; font-weight: 600; color: #1e3a5f; }
.import-type-desc  { font-size: 10px; color: #9ca3af; }

/* ── Buttons ───────────────────────────────────────────── */
.btn-import {
  width: 100%;
  padding: 10px;
  background: #1e3a5f;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-import:hover  { background: #0f2a4f; }
.btn-import:disabled { background: #9ca3af; cursor: not-allowed; }

.btn-commit {
  padding: 8px 20px;
  background: #065f46;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

.btn-commit:hover    { background: #047857; }
.btn-commit:disabled { background: #9ca3af; cursor: not-allowed; }

/* ── Vorschau ──────────────────────────────────────────── */
.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  gap: 12px;
}

.preview-title    { font-size: 16px; font-weight: 700; color: #1e3a5f; }
.preview-subtitle { font-size: 12px; color: #9ca3af; margin-top: 2px; }

.stats-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.stat-badge {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 8px 14px;
  min-width: 80px;
  text-align: center;
}

.stat-value { font-size: 20px; font-weight: 700; }
.stat-label { font-size: 10px; color: #9ca3af; margin-top: 2px; }

.preview-section { margin-bottom: 20px; }

.preview-section-title {
  font-size: 11px;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid #f3f4f6;
}

.preview-meet {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid #f9fafb;
  font-size: 13px;
}

.meet-meta { font-size: 11px; color: #9ca3af; }

/* ── Athleten-Tabelle ──────────────────────────────────── */
.table-wrap { overflow-x: auto; }

.preview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.preview-table th {
  text-align: left;
  padding: 6px 8px;
  background: #f9fafb;
  border-bottom: 2px solid #e5e7eb;
  font-size: 10px;
  color: #6b7280;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

.preview-table td {
  padding: 6px 8px;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
}

.row-matched   { background: #f0fdf4; }
.row-unmatched { background: #fffbeb; }

.match-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.match-ok   { background: #d1fae5; color: #065f46; }
.match-fail { background: #fef3c7; color: #92400e; }

.count-pill {
  display: inline-block;
  padding: 1px 6px;
  background: #e0e7ff;
  color: #3730a3;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 600;
  margin-right: 3px;
}

/* ── Status-Meldungen ──────────────────────────────────── */
.import-error {
  background: #fee2e2;
  color: #991b1b;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 13px;
  margin-bottom: 12px;
}

.import-warning {
  background: #fef3c7;
  color: #92400e;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12px;
  margin-bottom: 8px;
}

.import-success {
  text-align: center;
  padding: 40px 20px;
}

/* ── Import-Verlauf ────────────────────────────────────── */
.import-history { display: flex; flex-direction: column; gap: 4px; }

.history-item {
  padding: 6px 0;
  border-bottom: 1px solid #f3f4f6;
}

.history-name { font-size: 12px; font-weight: 600; color: #1e3a5f; }
.history-meta { font-size: 10px; color: #9ca3af; margin-top: 1px; }
