/* ─── Kanban Board ────────────────────────────────────────────────────────── */
#kanban-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* overridden inline by JS */
  gap: 12px;
  padding: 16px;
  flex: 1;
  align-items: stretch;
  min-height: 0;
  overflow: hidden;
}

/* Column */
.kanban-col {
  --col-color: var(--text-muted); /* overridden per-column by JS */
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--col-color);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.col-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}

.col-title {
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--col-color);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Default column badge */
.col-default-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .8px;
  color: var(--col-color);
  border: 1px solid var(--col-color);
  border-radius: 10px;
  padding: 1px 6px;
  opacity: .7;
  white-space: nowrap;
  flex-shrink: 0;
}

.col-count {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1px 9px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  min-width: 28px;
  text-align: center;
  flex-shrink: 0;
}

/* Card list / drop zone */
.card-list {
  flex: 1;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Custom scrollbar to match dark theme */
.card-list::-webkit-scrollbar { width: 5px; }
.card-list::-webkit-scrollbar-track { background: transparent; }
.card-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }
.card-list::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

.card-list.drag-over {
  background: rgba(31, 111, 235, 0.08);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* Drop position indicator line */
.drop-indicator {
  position: fixed;
  height: 2px;
  background: var(--accent-h);
  border-radius: 2px;
  pointer-events: none;
  z-index: 200;
  box-shadow: 0 0 6px var(--accent-h);
}
.drop-indicator::before {
  content: '';
  position: absolute;
  left: -4px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-h);
}

/* ─── Flight Card ─────────────────────────────────────────────────────────── */
.flight-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  cursor: grab;
  user-select: none;
  transition: border-color .15s, box-shadow .15s, opacity .15s;
  position: relative;
}
.flight-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.flight-card.dragging {
  opacity: .45;
  cursor: grabbing;
}

/* Card header row */
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.card-reg {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 1px;
}

.card-edit-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: var(--radius);
  transition: color .15s, background .15s;
  line-height: 1;
}
.card-edit-btn:hover { color: var(--text); background: var(--border); }

/* Route row */
.card-route {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
  letter-spacing: .5px;
}
.card-route .arrow { margin: 0 4px; color: var(--accent-h); }

/* Meta row */
.card-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 5px;
}
.card-meta span strong {
  color: var(--text);
  font-size: 12px;
}

/* Notes / Remarks */
.card-notes,
.card-remarks {
  font-size: 11px;
  border-radius: 4px;
  padding: 4px 7px;
  margin-top: 4px;
  line-height: 1.4;
  word-break: break-word;
}
.card-notes {
  background: var(--notes-bg);
  border-left: 2px solid var(--warn);
  color: var(--notes-text);
}
.card-remarks {
  background: var(--remarks-bg);
  border-left: 2px solid var(--accent);
  color: var(--remarks-text);
}
.card-notes .tag,
.card-remarks .tag {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 9px;
  letter-spacing: .5px;
  margin-right: 4px;
  opacity: .7;
}
