.board-column {
  width: 280px;
  min-width: 280px;
  background: #f9fafb;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 120px);
}

.column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 12px 12px 0 0;
  border-bottom: 2px solid;
  font-weight: 600;
  font-size: 0.875rem;
}

.column-count {
  font-size: 0.75rem;
  font-weight: 500;
  background: white;
  padding: 2px 8px;
  border-radius: 9999px;
}

.column-cards {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
  min-height: 60px;
}

.column-footer {
  padding: 4px 16px;
  text-align: right;
}

/* Lead card */
.lead-card {
  background: white;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 6px;
  cursor: grab;
  border: 1px solid #e5e7eb;
  transition: box-shadow 0.15s, transform 0.15s;
}

.lead-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.lead-card:active {
  cursor: grabbing;
}

.lead-card .card-name {
  font-weight: 600;
  font-size: 0.875rem;
  color: #1f2937;
}

.lead-card .card-company {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 2px;
}

.lead-card .card-value {
  font-size: 0.75rem;
  font-weight: 600;
  color: #059669;
  margin-top: 6px;
}

/* Card labels */
.card-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 6px;
}

.card-label {
  font-size: 0.625rem;
  font-weight: 600;
  color: white;
  padding: 1px 6px;
  border-radius: 4px;
  line-height: 1.4;
}

/* Card footer with due date, comments, avatar */
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  min-height: 20px;
}

.card-footer-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-due {
  font-size: 0.675rem;
  color: #6b7280;
  background: #f3f4f6;
  padding: 1px 6px;
  border-radius: 4px;
}

.card-due.overdue {
  color: #dc2626;
  background: #fef2f2;
  font-weight: 600;
}

.card-comment-count {
  font-size: 0.675rem;
  color: #9ca3af;
}

.card-comment-count::before {
  content: '\1F4AC ';
}

.card-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e0e7ff;
  color: #4f46e5;
  font-size: 0.625rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Inline add */
.inline-add-btn {
  padding: 8px 16px;
  color: #9ca3af;
  font-size: 0.8rem;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.15s;
}

.inline-add-btn:hover {
  color: #6b7280;
}

.inline-add-input {
  padding: 4px 8px;
  margin-bottom: 6px;
}

.inline-add-input input {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 0.85rem;
  outline: none;
}

.inline-add-input input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* Label toggle in modal */
.label-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  border: 2px solid #e5e7eb;
  color: #6b7280;
  transition: all 0.15s;
  user-select: none;
}

.label-toggle input {
  display: none;
}

.label-toggle.active {
  background: var(--label-color);
  border-color: var(--label-color);
  color: white;
}

/* Comments */
.comment-item {
  background: #f9fafb;
  border-radius: 8px;
  padding: 8px 10px;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.comment-author {
  font-size: 0.75rem;
  font-weight: 600;
  color: #374151;
}

.comment-date {
  font-size: 0.65rem;
  color: #9ca3af;
}

.comment-delete {
  margin-left: auto;
  color: #d1d5db;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  border: none;
  background: none;
  padding: 0 2px;
}

.comment-delete:hover {
  color: #ef4444;
}

.comment-text {
  font-size: 0.8rem;
  color: #4b5563;
  white-space: pre-wrap;
}

/* SortableJS ghost */
.sortable-ghost {
  opacity: 0.4;
}

.sortable-chosen {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transform: rotate(2deg);
}

/* Scrollbar */
.column-cards::-webkit-scrollbar {
  width: 4px;
}

.column-cards::-webkit-scrollbar-track {
  background: transparent;
}

.column-cards::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 4px;
}

/* Modal backdrop */
#modal.flex {
  display: flex;
}

/* Admin tabs */
.admin-tab {
  padding: 12px 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: #6b7280;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  transition: color 0.15s;
}

.admin-tab:hover {
  color: #374151;
}

.admin-tab.active {
  color: #2563eb;
  border-bottom-color: #2563eb;
}
