/**
 * STYLESHEET CHO KANBAN BOARD & DRAG AND DROP
 */

.kanban-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.kanban-board {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  min-height: 600px;
  padding-bottom: 20px;
  min-width: 100%;
}

.kanban-column {
  flex: 1 1 0;
  min-width: 230px;
  background-color: #F8FAFC;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 210px);
  box-shadow: var(--shadow-sm);
}

.kanban-column-header {
  padding: 12px 14px;
  background-color: #FFFFFF;
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  border-bottom: 1px solid var(--border-color);
}

.kanban-col-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.kanban-col-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.kanban-col-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.kanban-col-count {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  background-color: #F1F5F9;
  padding: 1px 6px;
  border-radius: var(--radius-full);
}

.kanban-cards-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 120px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.kanban-cards-list.drag-over {
  background-color: var(--brand-primary-light);
  outline: 2px dashed var(--brand-primary);
  outline-offset: -4px;
}

.drop-indicator {
  height: 4px;
  background-color: var(--brand-primary);
  border-radius: 2px;
  margin: 2px 0;
  pointer-events: none;
}

/* ===================== KANBAN CARD ===================== */
.kanban-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  box-shadow: var(--shadow-sm);
  cursor: grab;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  user-select: none;
}

.kanban-card:hover {
  border-color: #CBD5E1;
  box-shadow: var(--shadow-md);
}

.kanban-card.dragging {
  opacity: 0.4;
  cursor: grabbing;
}

.kanban-card.card-late {
  border: 2px solid var(--status-late) !important;
  box-shadow: 0 0 0 1px var(--status-late-border);
}

.kanban-card.card-blocked {
  background-color: var(--status-blocked-bg);
  border-left: 4px solid var(--status-blocked);
}

.card-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.flag-blocked {
  font-size: 12px;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.priority-dot {
  font-size: 11px;
}

.card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 12px;
  word-break: break-word;
}

.card-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid #F1F5F9;
  font-size: 11px;
}

.assignee-box {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 140px;
}

.avatar-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: #FFFFFF;
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.assignee-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
  color: var(--text-secondary);
}

.unassigned-text {
  color: var(--text-light);
  font-style: italic;
}

.card-meta-chips {
  display: flex;
  align-items: center;
  gap: 4px;
}

.date-chip {
  padding: 1px 5px;
  background-color: #F1F5F9;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  font-size: 10px;
}

.date-chip.date-late {
  background-color: var(--status-late-bg);
  color: var(--status-late);
  font-weight: 700;
}

.meta-chip {
  padding: 1px 4px;
  background-color: #F1F5F9;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  font-size: 10px;
}

/* ===================== QUICK ADD ===================== */
.quick-add-card-box {
  padding: 8px 10px;
  border-top: 1px solid var(--border-color);
  background-color: #F8FAFC;
}

.btn-quick-add {
  width: 100%;
  padding: 6px;
  text-align: left;
  background: transparent;
  border: 1px dashed #CBD5E1;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-quick-add:hover {
  background-color: #FFFFFF;
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.quick-add-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quick-add-input {
  width: 100%;
  padding: 8px;
  font-size: 12px;
  border: 1px solid var(--brand-primary);
  border-radius: var(--radius-md);
  resize: none;
}

.quick-add-actions {
  display: flex;
  gap: 6px;
}
