/*
 * Kanban Board Features
 * Kanban, swimlanes, WIP limits, priority indicators, labels
 */

/* Kanban Board */
.kanban-board {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 16px;
}

.kanban-column {
  flex: 0 0 280px;
}

.kanban-column-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding: 0 12px 12px 12px;
  border-bottom: 1px solid var(--border-color);
}

.kanban-column-title {
  font-weight: 600;
  font-size: 14px;
}

.kanban-column-count {
  background-color: var(--bg-tertiary);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 12px;
  color: var(--text-secondary);
}

.kanban-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kanban-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 12px;
  cursor: grab;
  transition: box-shadow 0.15s, transform 0.15s;
}

.kanban-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.kanban-card-active {
  border-left: 3px solid var(--accent-primary);
}

.kanban-card-done {
  opacity: 0.7;
}

.kanban-card-title {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
}

.kanban-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Priority Indicators */
.priority-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
}

.priority-icon {
  font-size: 14px;
}

.priority-label {
  font-weight: 600;
  font-size: 14px;
}

.priority-description {
  font-size: 12px;
  color: var(--text-secondary);
  margin-left: auto;
}

/* Labels & Tags */
.label {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.label-red { background-color: rgba(239, 68, 68, 0.2); color: #ef4444; }
.label-blue { background-color: rgba(59, 130, 246, 0.2); color: #3b82f6; }
.label-green { background-color: rgba(16, 185, 129, 0.2); color: #10b981; }
.label-purple { background-color: rgba(139, 92, 246, 0.2); color: #8b5cf6; }
.label-yellow { background-color: rgba(234, 179, 8, 0.2); color: #eab308; }
.label-pink { background-color: rgba(236, 72, 153, 0.2); color: #ec4899; }
.label-cyan { background-color: rgba(6, 182, 212, 0.2); color: #06b6d4; }
.label-orange { background-color: rgba(249, 115, 22, 0.2); color: #f97316; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 12px;
}

.tag-remove {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0;
  font-size: 14px;
  line-height: 1;
}

.tag-remove:hover {
  color: #ef4444;
}

/* WIP Limits */
.wip-column {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px;
  width: 160px;
}

.wip-column-warning {
  border-color: #F59E0B;
}

.wip-column-danger {
  border-color: #EF4444;
  background-color: rgba(239, 68, 68, 0.05);
}

.wip-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.wip-title {
  font-size: 14px;
  font-weight: 500;
}

.wip-count {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 10px;
  background-color: var(--bg-tertiary);
}

.wip-ok {
  color: var(--text-secondary);
}

.wip-near {
  background-color: rgba(245, 158, 11, 0.2);
  color: #F59E0B;
}

.wip-over {
  background-color: rgba(239, 68, 68, 0.2);
  color: #EF4444;
}

.wip-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wip-card {
  background-color: var(--bg-tertiary);
  padding: 8px 10px;
  border-radius: 4px;
  font-size: 12px;
}

.wip-warning-msg {
  margin-top: 12px;
  font-size: 11px;
  color: #EF4444;
}

/* Swimlanes */
.swimlanes {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.swimlane {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

.swimlane-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background-color: var(--bg-tertiary);
  cursor: pointer;
}

.swimlane-icon {
  font-size: 16px;
}

.swimlane-title {
  font-size: 14px;
  font-weight: 500;
  flex: 1;
}

.swimlane-count {
  font-size: 12px;
  color: var(--text-secondary);
}

.swimlane-collapse {
  border: none;
  background: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px;
}

.swimlane-content {
  padding: 12px 16px;
}

.swimlane-cards {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.swimlane-card {
  background-color: var(--bg-tertiary);
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 12px;
}

.swimlane-collapsed .swimlane-content {
  display: none;
}

