/* profiler.css — minimal custom styles only
   Everything else uses Bootstrap 5 utility classes directly in HTML */

body { font-size: 15px; }

/* ── Page header ─────────────────────────────────────────────────── */
.page-header {
  background: #fff;
  border-bottom: 1px solid #dee2e6;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.page-header .brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: #212529;
}
.page-header h1 { font-size: 17px; font-weight: 600; margin: 0; }

/* ── Profile list rows ───────────────────────────────────────────── */
.profile-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid #f0f0f0;
  text-decoration: none; color: #212529;
  transition: background 0.1s;
}
.profile-item:last-child { border-bottom: none; }
.profile-item:hover { background: #f8f9fa; }

/* ── Annotation/prompt accordion ────────────────────────────────── */
.annotation-section {
  border: 1px solid #dee2e6;
  border-radius: 6px;
  margin-bottom: 8px;
  overflow: hidden;
}
.annotation-header {
  padding: 10px 16px;
  background: #f8f9fa;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  user-select: none;
  font-size: 14px;
}
.annotation-header:hover { background: #e9ecef; }
.annotation-header > div { flex: 1; }
.annotation-header > i { flex-shrink: 0; margin-top: 3px; }
.annotation-body { padding: 16px; display: none; }
.annotation-body.open { display: block; }

/* ── Upload zone ─────────────────────────────────────────────────── */
.upload-zone {
  border: 2px dashed #ced4da;
  border-radius: 8px;
  padding: 32px;
  text-align: center;
  color: #6c757d;
  cursor: pointer;
  transition: all 0.15s;
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: #0d6efd;
  background: #f0f6ff;
  color: #0d6efd;
}

/* ── Toast ───────────────────────────────────────────────────────── */
.profiler-toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  padding: 10px 16px; border-radius: 6px; font-size: 14px;
  display: flex; align-items: center; gap: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  opacity: 0; transition: opacity 0.2s; pointer-events: none;
  max-width: 360px;
}

/* ── Wizard role checkboxes ──────────────────────────────────────── */
.role-check {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; cursor: pointer; user-select: none;
  padding: 3px 10px; border-radius: 20px;
  border: 1px solid #ced4da; background: #fff;
  color: #6c757d; transition: all 0.12s; white-space: nowrap;
}
.role-check input { display: none; }
.role-check.checked-Date       { background: #cfe2ff; border-color: #9ec5fe; color: #052c65; }
.role-check.checked-Sum        { background: #d1e7dd; border-color: #a3cfbb; color: #0a3622; }
.role-check.checked-GroupBy    { background: #fff3cd; border-color: #ffda6a; color: #664d03; }
.role-check.checked-Count      { background: #e2d9f3; border-color: #c5b3e6; color: #3d0a91; }
.role-check.checked-Identifier { background: #f8f9fa; border-color: #adb5bd; color: #495057; }
.role-check.checked-Ignore     { background: #f8d7da; border-color: #f1aeb5; color: #58151c; }

/* ── Wizard handler type badges ──────────────────────────────────── */
.handler-type {
  font-size: 11px; font-weight: 500; padding: 2px 8px;
  border-radius: 20px; letter-spacing: 0.3px; white-space: nowrap;
}
.ht-DateRange      { background: #cfe2ff; color: #052c65; border: 1px solid #9ec5fe; }
.ht-GroupedSummary { background: #d1e7dd; color: #0a3622; border: 1px solid #a3cfbb; }
.ht-Distinct       { background: #fff3cd; color: #664d03; border: 1px solid #ffda6a; }
.ht-TopN           { background: #fff3cd; color: #664d03; border: 1px solid #ffda6a; }
.ht-RowCount       { background: #e2d9f3; color: #3d0a91; border: 1px solid #c5b3e6; }

/* ── Wizard step indicator ───────────────────────────────────────── */
.wizard-step { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #6c757d; flex-shrink: 0; }
.wizard-step.active { color: #0d6efd; font-weight: 600; }
.wizard-step.done   { color: #198754; }
.step-num {
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; flex-shrink: 0;
  border: 2px solid #dee2e6; background: #fff; color: #6c757d;
}
.wizard-step.active .step-num { border-color: #0d6efd; background: #0d6efd; color: #fff; }
.wizard-step.done .step-num   { border-color: #198754; background: #198754; color: #fff; }
.step-line { flex: 1; height: 1px; background: #dee2e6; margin: 0 8px; }

/* ── Handler row in wizard ───────────────────────────────────────── */
.handler-row {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 16px; border-bottom: 1px solid #f0f0f0; font-size: 14px;
  flex-wrap: wrap;
}
.handler-row:last-child { border-bottom: none; }

/* ── Table tab buttons in wizard ─────────────────────────────────── */
.table-tab {
  padding: 5px 14px; font-size: 13px;
  border-radius: 6px; cursor: pointer;
  border: 1px solid #dee2e6; background: #fff;
  color: #6c757d; transition: all 0.12s; white-space: nowrap;
}
.table-tab.active { background: #0d6efd; color: #fff; border-color: #0d6efd; font-weight: 500; }

/* ── Column grid in wizard ───────────────────────────────────────── */
.col-grid { width: 100%; border-collapse: collapse; font-size: 13px; }
.col-grid th {
  padding: 8px 12px; background: #f8f9fa; border-bottom: 1px solid #dee2e6;
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.5px; color: #6c757d; text-align: left;
}
.col-grid td { padding: 8px 12px; border-bottom: 1px solid #f0f0f0; vertical-align: middle; }
.col-grid tr:last-child td { border-bottom: none; }
.col-grid tr:hover td { background: #f8f9fa; }
.col-samples { font-family: monospace; font-size: 11px; color: #6c757d; max-width: 160px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.col-desc-input { border: 1px solid #ced4da; border-radius: 4px; padding: 4px 8px; font-size: 12px; width: 100%; min-width: 140px; }
.col-desc-input:focus { outline: none; border-color: #86b7fe; box-shadow: 0 0 0 2px rgba(13,110,253,0.15); }

/* ── Wizard panes — only active pane visible ────────────────────── */
.wizard-pane         { display: none; }
.wizard-pane.active  { display: block; }