/* ─────────────────────────────────────────────────────────────
   admin-imports.css — Imports-Tab im Admin-Modal
   ───────────────────────────────────────────────────────────── */

.imp-wrap {
  padding: 16px 24px 24px;
  max-height: 70vh;
  overflow-y: auto;
}

.imp-intro {
  margin-bottom: 18px;
}
.imp-intro h3 {
  margin: 0 0 6px;
  font-size: 16px;
  color: var(--theme-primary, #0d2840);
}
.imp-intro p {
  margin: 0 0 10px;
  font-size: 13px;
  color: #4a5664;
}
.imp-format-list {
  margin: 0;
  padding-left: 18px;
  font-size: 12px;
  color: #6b7785;
}
.imp-format-list li { margin: 3px 0; }
.imp-format-list code {
  background: #f4f6f8;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 11px;
  color: #1a2332;
}

/* Dropzone */
.imp-dropzone {
  border: 2px dashed #d8dee5;
  border-radius: 8px;
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s;
  margin-bottom: 16px;
  background: #fafbfc;
}
.imp-dropzone:hover,
.imp-dz-active {
  border-color: var(--theme-primary, #0d2840);
  background: #f0f7ff;
}
.imp-dz-content {
  pointer-events: none;
}
.imp-dz-icon {
  font-size: 36px;
  margin-bottom: 8px;
}
.imp-dz-text strong {
  display: block;
  font-size: 14px;
  color: var(--theme-primary, #0d2840);
  margin-bottom: 2px;
}
.imp-dz-text span {
  font-size: 12px;
  color: #6b7785;
}

/* Result-Karten */
.imp-result {
  min-height: 60px;
}
.imp-card {
  background: white;
  border: 1px solid #d8dee5;
  border-radius: 8px;
  padding: 18px 20px;
  margin-top: 12px;
}
.imp-card-preview { border-left: 4px solid var(--theme-primary, #0d2840); }
.imp-card-success { border-left: 4px solid #2e8540; background: #f3faf5; }
.imp-card-warning { border-left: 4px solid #b8860b; background: #fffdf6; }
.imp-card-error   { border-left: 4px solid #c44b1c; background: #fef5f3; }

.imp-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.imp-card h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--theme-primary, #0d2840);
}
.imp-card-success h4 { color: #155724; }
.imp-card-warning h4 { color: #856404; }
.imp-card-error   h4 { color: #721c24; }

.imp-card p {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.5;
}

/* Format-Badge */
.imp-format-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.imp-fmt-tuic-schedule  { background: #cfe2f3; color: #0d2840; }
.imp-fmt-hlc-luxury     { background: #fce5cd; color: #7d3c00; }
.imp-fmt-hlc-expedition { background: #d9ead3; color: #275928; }
.imp-fmt-agents         { background: #e2d5f0; color: #4a2868; }

/* Stats-Grid */
.imp-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.imp-stat {
  text-align: center;
  background: #f4f6f8;
  padding: 12px 8px;
  border-radius: 6px;
}
.imp-stat-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--theme-primary, #0d2840);
}
.imp-stat-label {
  font-size: 10px;
  font-weight: 600;
  color: #6b7785;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

/* Warnungen/Hinweise im Card */
.imp-warning,
.imp-info {
  background: #fff3cd;
  color: #856404;
  padding: 10px 12px;
  border-radius: 5px;
  font-size: 12px;
  margin-bottom: 12px;
}
.imp-info { background: #d1ecf1; color: #0c5460; }
.imp-warning code,
.imp-info code {
  background: rgba(0, 0, 0, 0.08);
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 11px;
}
.imp-warning ul {
  margin: 6px 0 0 18px;
  padding: 0;
}
.imp-warning li { margin: 2px 0; font-family: ui-monospace, monospace; }

.imp-text-warn { color: #b8860b; }

/* Aktionen */
.imp-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}
.imp-btn-cancel,
.imp-btn-confirm {
  padding: 8px 16px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid;
}
.imp-btn-cancel {
  background: white;
  color: #4a5664;
  border-color: #d8dee5;
}
.imp-btn-cancel:hover {
  border-color: #4a5664;
}
.imp-btn-confirm {
  background: var(--theme-primary, #0d2840);
  color: white;
  border-color: var(--theme-primary, #0d2840);
}
.imp-btn-confirm:hover {
  filter: brightness(1.1);
}

/* Status / Spinner */
.imp-status {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: #f4f6f8;
  border-radius: 6px;
  font-size: 13px;
  color: #4a5664;
}
.imp-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid #d8dee5;
  border-top-color: var(--theme-primary, #0d2840);
  border-radius: 50%;
  animation: imp-spin 0.8s linear infinite;
}
@keyframes imp-spin { to { transform: rotate(360deg); } }

/* Success */
.imp-success-icon {
  display: inline-block;
  width: 36px;
  height: 36px;
  background: #2e8540;
  color: white;
  border-radius: 50%;
  font-size: 22px;
  text-align: center;
  line-height: 36px;
  margin-right: 12px;
  vertical-align: middle;
}

/* Format-Picker (UNKNOWN-Fall) */
.imp-format-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0;
}
.imp-format-picker button {
  padding: 10px;
  border: 1px solid #d8dee5;
  background: white;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: var(--theme-primary, #0d2840);
}
.imp-format-picker button:hover {
  background: #f0f7ff;
  border-color: var(--theme-primary, #0d2840);
}

.imp-details {
  margin-top: 12px;
  font-size: 12px;
}
.imp-details summary {
  cursor: pointer;
  color: #6b7785;
  font-weight: 600;
}
.imp-details code {
  display: block;
  margin-top: 8px;
  padding: 8px;
  background: #f4f6f8;
  border-radius: 4px;
  font-size: 11px;
  word-break: break-all;
}

.imp-empty {
  padding: 40px 20px;
  text-align: center;
  color: #6b7785;
  font-style: italic;
}

@media (max-width: 700px) {
  .imp-stats { grid-template-columns: 1fr 1fr; }
  .imp-format-picker { grid-template-columns: 1fr; }
}
