/* Project hub + board styling */

/* ---- Hub ---- */
.project-card {
  transition: transform 0.1s ease-out, box-shadow 0.1s ease-out;
}
.project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* ---- Board ---- */
.phase-section {
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 12px;
  background: #fcfcfd;
}

.phase-header h5 {
  font-size: 1rem;
}
.phase-seq {
  font-size: 0.75rem;
  margin-right: 6px;
}

.phase-menu-btn {
  color: #adb5bd;
  line-height: 1;
}
.phase-header:hover .phase-menu-btn,
.phase-menu.show .phase-menu-btn {
  color: #495057;
}

.phase-columns {
  flex-wrap: nowrap;
  overflow-x: auto;
}

.status-column {
  min-width: 200px;
  border-right: 1px solid #eee;
  padding: 0 6px;
}
.status-column:last-child {
  border-right: none;
}

.status-col-header {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 4px 6px;
  margin-bottom: 6px;
  color: #555;
  border-bottom: 2px solid #ced4da;
}

.status-col-body {
  min-height: 60px;
  padding: 2px;
}
.status-col-body.drop-hover {
  background: #eef5ff;
  outline: 2px dashed #0d6efd;
}

.task-card {
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  padding: 8px 10px;
  font-size: 0.85rem;
  cursor: grab;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.task-card:active { cursor: grabbing; }
.task-card.dragging { opacity: 0.4; }
.task-card:hover { border-color: #0d6efd; }
.task-card.drop-above { box-shadow: 0 -3px 0 #0d6efd; }
.task-card.drop-attach {
  outline: 2px solid #0d6efd;
  outline-offset: 2px;
  background: #eef5ff;
}

.task-title {
  font-weight: 500;
  color: #222;
  line-height: 1.3;
  /* Wrap long Chinese */
  word-break: break-word;
}

.tag-pill {
  font-size: 0.7rem;
  font-weight: normal;
  border: 1px solid #dee2e6;
}

.add-task-btn {
  font-size: 0.8rem;
  color: #6c757d;
  text-decoration: none;
  width: 100%;
  text-align: left;
  padding: 2px 6px;
}
.add-task-btn:hover {
  color: #0d6efd;
  background: #f0f7ff;
}

/* Legacy statuses in muted tone (kept for backward-compat boards) */
.status-column[data-status="chr_review"] .status-col-header,
.status-column[data-status="ongoing"] .status-col-header {
  color: #6c757d;
  border-bottom-style: dashed;
}
