/* ===== TASKS STYLES ===== */

.board {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 24px;
  flex: 1;
  min-height: 0;
}

.column {
  background: var(--bg-secondary);
  border-radius: 6px;
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  box-shadow: var(--neon-glow-soft), inset 0 1px 0 rgba(255,255,255,0.02);
  min-width: 340px;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 100%;
}

.column-header {
  padding: 14px 16px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-shadow: var(--neon-glow-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: grab;
}

.column-header:active {
  cursor: grabbing;
}

.column.dragging-column {
  opacity: 0.5;
}

.column-drop-indicator {
  width: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin: 0 -2px;
  min-height: 100px;
}

.column-header .count {
  background: transparent;
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  font-family: var(--mono);
  letter-spacing: 0.05em;
}

.cards {
  flex: 1;
  overflow-y: auto;
  padding: 0 12px 12px;
  min-height: 100px;
}

.cards.drag-over {
  background: rgba(0, 245, 255, 0.04);
  border-radius: 4px;
}

.task-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  border-left: 2px solid var(--border);
  padding: 12px 14px;
  margin-bottom: 8px;
  cursor: grab;
  transition: all 0.18s ease;
  box-shadow: 0 2px 8px var(--shadow);
  position: relative;
}

.task-card:hover {
  border-left-color: var(--accent);
  border-color: var(--border);
  border-left-color: var(--accent);
  box-shadow: var(--neon-glow-soft), 0 4px 16px var(--shadow);
  transform: translateX(2px);
}

.task-card .add-on-hover {
  display: none;
}

.task-card:hover .add-on-hover {
  display: block;
}

.task-card .delete-btn {
  display: none;
  position: absolute;
  top: 8px;
  right: 8px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 6px;
  font-size: 14px;
  line-height: 1;
  border-radius: 4px;
}

.task-card:hover .delete-btn {
  display: block;
}

.task-card .delete-btn:hover {
  background: var(--bg-secondary);
  color: var(--accent);
}

.task-card.dragging {
  opacity: 0.5;
  transform: rotate(2deg);
}

.card-title {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-primary);
  font-family: var(--mono);
}

.card-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.4;
  overflow-wrap: break-word;
  word-break: break-word;
}

.card-subtasks {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
  font-size: 13px;
  color: var(--text-secondary);
}

.subtask {
  padding: 3px 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.empty-state {
  text-align: center;
  padding: 80px 40px;
  color: var(--text-muted);
}

.empty-state button {
  font-size: 16px;
  padding: 14px 28px;
  background: var(--accent);
  border: none;
  color: white;
}

.empty-state button:hover {
  background: var(--accent-hover);
}

/* Scrollbar styling for cards */
.cards::-webkit-scrollbar {
  width: 6px;
}

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

.cards::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.cards::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Add card */
.add-card {
  padding: 12px;
}

.add-card button {
  width: 100%;
  background: transparent;
  border: 1px dashed var(--border);
  color: var(--text-muted);
  font-weight: 600;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 3px;
  padding: 8px;
}

.add-card button:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
}

.new-task-input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--accent);
  box-shadow: var(--neon-glow-soft);
  border-radius: 3px;
  padding: 10px 12px;
  color: var(--text-primary);
  font-size: 12px;
  font-family: var(--mono);
  resize: none;
}

.new-task-input:focus {
  outline: none;
}

.new-task-input::placeholder {
  color: var(--text-muted);
}

/* List View Styles */
.list-view {
  max-width: 800px;
  margin: 0 auto;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
}

.list-view::-webkit-scrollbar {
  width: 6px;
}

.list-view::-webkit-scrollbar-track {
  background: transparent;
}

.list-view::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.list-view::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

.list-section {
  margin-bottom: 28px;
}

.list-section.drag-over {
  background: rgba(0, 245, 255, 0.04);
  border-radius: 4px;
  margin: 0 -12px 32px;
  padding: 0 12px;
}

.list-section-header {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  text-shadow: var(--neon-glow-soft);
  padding: 4px 0;
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}

.list-section-header .section-title {
  cursor: pointer;
}

.list-section-header .section-title:hover {
  color: var(--text-primary);
}

.list-section-header .count {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.list-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 14px;
  margin-bottom: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-left: 2px solid var(--border);
  cursor: grab;
  position: relative;
  border-radius: 3px;
  transition: all 0.18s ease;
  box-shadow: 0 2px 8px var(--shadow);
}

.list-item:active {
  cursor: grabbing;
}

.list-item:hover {
  border-left-color: var(--accent);
  box-shadow: var(--neon-glow-soft), 0 4px 12px var(--shadow);
  transform: translateX(2px);
}

.list-item.dragging {
  opacity: 0.5;
  background: var(--bg-secondary);
}

.list-item .checkbox {
  margin-top: 2px;
  flex-shrink: 0;
}

.list-item-content {
  flex: 1;
  min-width: 0;
}

.list-item-title {
  font-size: 15px;
  color: var(--text-primary);
  line-height: 1.4;
}

.list-item-title.checked {
  color: var(--text-muted);
  text-decoration: line-through;
}

.list-item-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
  cursor: pointer;
}

.list-item-note:hover {
  color: var(--text-secondary);
}

.list-item-note.add-note {
  font-style: italic;
  display: none;
}

.list-item:hover .list-item-note.add-note {
  display: block;
}

.list-item-subtasks {
  margin-top: 8px;
  padding-left: 2px;
}

.list-item-subtask {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 3px 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.list-item-subtask .checkbox {
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  margin-top: 1px;
}

.list-item-subtask span {
  cursor: pointer;
}

.list-item-subtask span:hover {
  color: var(--text-primary);
}

.list-item-add-subtask {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  cursor: pointer;
  padding: 3px 0;
  padding-left: 24px;
  display: none;
}

.list-item:hover .list-item-add-subtask {
  display: block;
}

.list-item-add-subtask:hover {
  color: var(--accent);
}

.list-item-section {
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-secondary);
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.list-item-actions {
  display: none;
  position: absolute;
  top: 8px;
  right: 8px;
}

.list-item:hover .list-item-actions {
  display: flex;
  gap: 4px;
}

.list-item-actions button {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 6px;
  font-size: 14px;
  line-height: 1;
  border-radius: 4px;
}

.list-item-actions button:hover {
  background: var(--bg-card);
  color: var(--accent);
}

.list-drop-indicator {
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin: 2px -12px;
}

.list-add-section {
  margin-top: 16px;
  padding: 16px;
  border: 2px dashed var(--border);
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s ease;
}

.list-add-section:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.quick-add {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
}

.quick-add-input {
  flex: 1;
  background: transparent;
  border: none;
  font-size: 15px;
  color: var(--text-primary);
  font-family: inherit;
  outline: none;
}

.quick-add-input::placeholder {
  color: var(--text-muted);
}

.quick-add-section {
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg-secondary);
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid var(--border);
}

.quick-add-section:hover {
  border-color: var(--accent);
}

.section-picker {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 20px var(--shadow-hover);
  padding: 4px;
  z-index: 100;
}

.section-picker button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 12px;
  font-size: 13px;
  background: transparent;
  border: none;
  border-radius: 6px;
}

.section-picker button:hover {
  background: var(--bg-secondary);
}
