/* ============================================================
   PROJET MIDDLE-TRACKING — Composants UI
   Cards, Modals, Timeline, Kanban, Formulaires
   ============================================================ */

/* ── Card ───────────────────────────────────────────────── */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-fast);
}

.card:hover { box-shadow: var(--shadow-md); }

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
  gap: var(--space-3);
}

.card-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.card-body { }

/* ── KPI Card ───────────────────────────────────────────── */
.kpi-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.kpi-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.kpi-card.violet::before { background: var(--accent-violet); }
.kpi-card.green::before  { background: var(--accent-green); }
.kpi-card.amber::before  { background: var(--accent-amber); }
.kpi-card.red::before    { background: var(--accent-red); }
.kpi-card.blue::before   { background: var(--accent-blue); }

.kpi-card:hover {
  border-color: var(--border-default);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.kpi-icon {
  font-size: 1.5rem;
  margin-bottom: var(--space-1);
}

.kpi-label {
  font-size: 0.70rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-muted);
}

.kpi-value {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text-primary);
}

.kpi-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.kpi-trend {
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}
.kpi-trend.up   { color: var(--accent-green); }
.kpi-trend.down { color: var(--accent-red); }

/* ── Progress Bar ───────────────────────────────────────── */
.progress-bar {
  height: 6px;
  background: var(--bg-hover);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: var(--space-2);
}

.progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.6s ease;
}
.progress-fill.violet { background: linear-gradient(90deg, var(--accent-violet), var(--accent-violet-light)); }
.progress-fill.green  { background: linear-gradient(90deg, var(--accent-green), var(--accent-green-light)); }
.progress-fill.amber  { background: linear-gradient(90deg, var(--accent-orange), var(--accent-amber)); }
.progress-fill.red    { background: linear-gradient(90deg, var(--accent-red), var(--accent-red-light)); }
.progress-fill.blue   { background: linear-gradient(90deg, var(--accent-blue), var(--accent-blue-light)); }

/* ── Badge Statut ───────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.badge-backlog  { background: rgba(122,132,168,0.12); color: var(--status-backlog); border: 1px solid rgba(122,132,168,0.25); }
.badge-backlog::before { background: var(--status-backlog); }
.badge-planifie { background: var(--accent-blue-dim);   color: var(--status-planifie); border: 1px solid rgba(21,101,192,0.2); }
.badge-planifie::before { background: var(--status-planifie); }
.badge-encours  { background: rgba(230,81,0,0.10);     color: var(--status-encours); border: 1px solid rgba(230,81,0,0.2); }
.badge-encours::before  { background: var(--status-encours); animation: pulse 1.5s ease-in-out infinite; }
.badge-realise  { background: var(--accent-green-dim);  color: var(--status-realise); border: 1px solid rgba(46,125,50,0.2); }
.badge-realise::before  { background: var(--status-realise); }
.badge-annule   { background: var(--accent-red-dim);    color: var(--status-annule); border: 1px solid rgba(198,40,40,0.2); }
.badge-annule::before   { background: var(--status-annule); }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

/* Badge Flux */
.badge-flux {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.badge-flux.PUSH      { background: rgba(21,101,192,0.10);  color: var(--accent-blue);  border: 1px solid rgba(21,101,192,0.25); }
.badge-flux.PULL      { background: rgba(21,101,192,0.10);  color: var(--accent-blue);  border: 1px solid rgba(21,101,192,0.25); }
.badge-flux.BOTTOM_UP { background: rgba(46,125,50,0.10);   color: var(--accent-green); border: 1px solid rgba(46,125,50,0.25); }
.badge-flux.VOLEE     { background: rgba(198,40,40,0.10);   color: var(--accent-red);   border: 1px solid rgba(198,40,40,0.25); }

/* Badge Priorité */
.badge-prio {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.badge-prio.haute   { background: rgba(198,40,40,0.10);  color: var(--prio-haute);   border: 1px solid rgba(198,40,40,0.25); }
.badge-prio.normale { background: rgba(21,101,192,0.10); color: var(--prio-normale); border: 1px solid rgba(21,101,192,0.2); }
.badge-prio.basse   { background: rgba(46,125,50,0.10);  color: var(--prio-basse);   border: 1px solid rgba(46,125,50,0.2); }

/* ── Tâche Card ─────────────────────────────────────────── */
.tache-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  border-left: 3px solid transparent;
}

.tache-card:hover {
  background: var(--bg-elevated);
  border-color: var(--border-default);
  box-shadow: var(--shadow-sm);
  transform: translateX(2px);
}

.tache-card.flux-PUSH      { border-left-color: var(--flux-push); }
.tache-card.flux-PULL      { border-left-color: var(--flux-pull); }
.tache-card.flux-BOTTOM_UP { border-left-color: var(--flux-bottomup); }
.tache-card.flux-VOLEE     { border-left-color: var(--flux-volee); }

.tache-card.imposed {
  background: rgba(198,40,40,0.04);
}

.tache-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.tache-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
}

.tache-meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-top: var(--space-2);
}

.tache-time {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.tache-actions {
  display: flex;
  gap: var(--space-1);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.tache-card:hover .tache-actions { opacity: 1; }

.tache-btn {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-default);
  background: var(--bg-elevated);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tache-btn:hover { background: var(--bg-hover); color: var(--text-primary); border-color: var(--border-strong); }
.tache-btn.start:hover  { background: var(--accent-green-dim); color: var(--accent-green); border-color: var(--accent-green); }
.tache-btn.done:hover   { background: var(--accent-green-dim); color: var(--accent-green); border-color: var(--accent-green); }
.tache-btn.delete:hover { background: var(--accent-red-dim);   color: var(--accent-red);   border-color: var(--accent-red); }
.tache-btn.edit:hover   { background: var(--accent-blue-dim);  color: var(--accent-blue);  border-color: var(--accent-blue); }

/* ── Timeline ───────────────────────────────────────────── */
.timeline-container {
  display: flex;
  gap: 0;
  overflow-x: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.timeline-axis {
  width: 64px;
  flex-shrink: 0;
  border-right: 1px solid var(--border-subtle);
  padding-top: 2px;
  background: var(--bg-elevated);
}

.timeline-slot-label {
  height: var(--slot-height);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.64rem;
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.timeline-slot-label.hour {
  color: var(--text-secondary);
  font-weight: 700;
}

.timeline-managers {
  flex: 1;
  display: flex;
  overflow-x: auto;
  min-width: 0;
}

.timeline-manager-col {
  flex: 1;
  min-width: 180px;
  border-right: 1px solid var(--border-subtle);
  position: relative;
}

.timeline-manager-col:last-child { border-right: none; }

.timeline-manager-header {
  padding: var(--space-3) var(--space-3);
  border-bottom: 1px solid var(--border-default);
  background: var(--bg-elevated);
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.timeline-manager-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
}

.timeline-grid {
  position: relative;
}

.timeline-cell {
  height: var(--slot-height);
  border-bottom: 1px solid var(--border-subtle);
  padding: 2px 4px;
  position: relative;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.timeline-cell:hover { background: var(--bg-hover); }

.timeline-cell.hour-boundary {
  border-bottom: 1px solid var(--border-default);
}

.timeline-cell.now {
  background: rgba(21,101,192,0.04);
}

.timeline-now-line {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: var(--accent-red);
  z-index: 5;
  pointer-events: none;
}

.timeline-now-line::before {
  content: '';
  position: absolute;
  left: -4px;
  top: -4px;
  width: 10px; height: 10px;
  background: var(--accent-red);
  border-radius: 50%;
}

/* Blocs de tâches sur la timeline — couleurs vives sur fond clair */
.timeline-block {
  position: absolute;
  left: 2px; right: 2px;
  border-radius: var(--radius-sm);
  padding: 3px 7px;
  font-size: 0.68rem;
  font-weight: 700;
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 2;
  color: white;
  text-shadow: 0 1px 2px rgba(0,0,0,0.25);
}

.timeline-block:hover { filter: brightness(1.08); box-shadow: var(--shadow-md); }

.timeline-block.PUSH      { background: #1565C0; }
.timeline-block.PULL      { background: #1565C0; }
.timeline-block.BOTTOM_UP { background: #2E7D32; }
.timeline-block.VOLEE     { background: #C62828; }
.timeline-block.REALISE   { opacity: 0.65; filter: saturate(0.5); }

.timeline-block-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Kanban Board ───────────────────────────────────────── */
.kanban-board {
  display: flex;
  gap: var(--space-4);
  overflow-x: auto;
  padding-bottom: var(--space-4);
  min-height: 400px;
}

.kanban-col {
  flex-shrink: 0;
  width: 300px;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.kanban-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.kanban-col-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.kanban-count {
  background: var(--bg-hover);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.kanban-drop-zone {
  flex: 1;
  background: var(--bg-elevated);
  border: 2px dashed var(--border-default);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-height: 200px;
  transition: all var(--transition-fast);
}

.kanban-drop-zone.drag-over {
  border-color: var(--accent-blue);
  background: var(--accent-blue-dim);
}

.kanban-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  cursor: grab;
  transition: all var(--transition-fast);
  border-left: 3px solid var(--accent-blue);
  user-select: none;
  box-shadow: var(--shadow-sm);
}

.kanban-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.kanban-card.dragging { opacity: 0.4; }
.kanban-card-title { font-size: 0.85rem; font-weight: 600; margin-bottom: var(--space-2); }
.kanban-card-meta { font-size: 0.72rem; color: var(--text-muted); }

/* ── Modal ──────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,31,54,0.6);
  backdrop-filter: blur(3px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.25s ease;
}

.modal-lg { max-width: 720px; }
.modal-sm { max-width: 380px; }

@keyframes modalIn {
  from { transform: scale(0.94) translateY(10px); opacity: 0; }
  to   { transform: scale(1)    translateY(0);    opacity: 1; }
}

.modal-header {
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.modal-title {
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.modal-close {
  width: 30px; height: 30px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.modal-close:hover { background: var(--accent-red-dim); color: var(--accent-red); border-color: rgba(198,40,40,0.3); }

.modal-body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.modal-footer {
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: flex-end;
  gap: var(--space-3);
}

/* ── Formulaires ────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-label .required {
  color: var(--accent-red);
  margin-left: 3px;
}

.form-control {
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  color: var(--text-primary);
  font-size: 0.88rem;
  font-family: inherit;
  transition: all var(--transition-fast);
  width: 100%;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px var(--accent-blue-dim);
  background: var(--bg-surface);
}

.form-control::placeholder { color: var(--text-muted); }

.form-control.error {
  border-color: var(--accent-red);
  box-shadow: 0 0 0 3px var(--accent-red-dim);
}

select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238892A4' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.form-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Toggle / Checkbox ─────────────────────────────────────── */
.toggle-group {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  cursor: pointer;
}

.toggle {
  width: 38px; height: 22px;
  background: var(--border-strong);
  border-radius: var(--radius-full);
  position: relative;
  flex-shrink: 0;
  transition: background var(--transition-fast);
}

.toggle::after {
  content: '';
  position: absolute;
  left: 3px; top: 3px;
  width: 16px; height: 16px;
  background: white;
  border-radius: 50%;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

input:checked + .toggle { background: var(--accent-violet); }
input:checked + .toggle::after { transform: translateX(16px); }

/* ── Tabs ───────────────────────────────────────────────── */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: var(--space-5);
  gap: 2px;
}

.tab {
  padding: var(--space-2) var(--space-5);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  transition: all var(--transition-fast);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.tab:hover { color: var(--text-secondary); background: var(--bg-elevated); }

.tab.active {
  color: var(--accent-blue);
  background: var(--bg-elevated);
}

.tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 2px;
  background: var(--accent-blue);
}

/* ── Séparateur ─────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border-subtle);
  margin: var(--space-4) 0;
}

/* ── Chip / Tag sélection rapide ────────────────────────── */
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.chip {
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 500;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.chip:hover { border-color: var(--accent-blue); color: var(--accent-blue); }
.chip.selected { background: var(--accent-blue-dim); border-color: var(--accent-blue); color: var(--accent-blue); }

/* ── Modal Volée (Saisie rapide) ────────────────────────── */
.volee-modal {
  position: fixed;
  bottom: var(--space-8);
  right: var(--space-8);
  z-index: 8500;
  width: 380px;
  background: var(--bg-surface);
  border: 1px solid rgba(198,40,40,0.4);
  border-radius: var(--radius-xl);
  box-shadow: 0 0 24px rgba(198,40,40,0.15), var(--shadow-lg);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.volee-header {
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.volee-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-red);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.volee-shortcut {
  margin-left: auto;
  font-size: 0.65rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text-muted);
  font-family: monospace;
}

.volee-body {
  padding: var(--space-4) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.volee-fab {
  position: fixed;
  bottom: var(--space-8);
  right: var(--space-8);
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--accent-amber);
  color: var(--text-inverse);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(245,158,11,0.4), var(--shadow-lg);
  transition: all var(--transition-fast);
  z-index: 8000;
  border: none;
}

.volee-fab:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(245,158,11,0.6); }

/* ── Empty State ────────────────────────────────────────── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-12) var(--space-8);
  text-align: center;
  gap: var(--space-4);
}

.empty-icon { font-size: 3rem; opacity: 0.5; }
.empty-title { font-size: 1rem; font-weight: 600; color: var(--text-secondary); }
.empty-desc  { font-size: 0.82rem; color: var(--text-muted); max-width: 280px; }

/* ── Manager Avatar ─────────────────────────────────────── */
.avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
}
.avatar-sm { width: 24px; height: 24px; font-size: 0.6rem; }
.avatar-lg { width: 40px; height: 40px; font-size: 0.85rem; }

.avatar.TM { background: var(--accent-violet-dim); color: var(--accent-violet-light); }
.avatar.QA { background: var(--accent-blue-dim);   color: var(--accent-blue); }
.avatar.LS { background: var(--accent-green-dim);  color: var(--accent-green-light); }
.avatar.OPS { background: var(--accent-red-dim);   color: var(--accent-red); }

/* ── Section Title ──────────────────────────────────────── */
.section-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* ── Alert banner ───────────────────────────────────────── */
.alert {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-size: 0.83rem;
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  border: 1px solid;
}

.alert-info    { background: var(--accent-blue-dim);   border-color: var(--accent-blue);   color: #93C5FD; }
.alert-warning { background: var(--accent-amber-dim);  border-color: var(--accent-amber);  color: #FCD34D; }
.alert-danger  { background: var(--accent-red-dim);    border-color: var(--accent-red);    color: #FCA5A5; }
.alert-success { background: var(--accent-green-dim);  border-color: var(--accent-green);  color: #6EE7B7; }

/* ── Loader spinner ─────────────────────────────────────── */
.spinner {
  width: 24px; height: 24px;
  border: 3px solid var(--border-default);
  border-top-color: var(--accent-violet);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Drag handle ────────────────────────────────────────── */
.drag-handle {
  cursor: grab;
  color: var(--text-muted);
  padding: 0 var(--space-1);
  font-size: 0.9rem;
}
.drag-handle:active { cursor: grabbing; }
