* {
  font-family: 'Lexend', sans-serif;
}

body {
  box-sizing: border-box;
}

.task-item {
  transition: all 0.2s ease;
  cursor: grab;
}

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

.task-item:hover {
  opacity: 0.9;
}

.color-picker {
  width: 20px;
  height: 20px;
  border: 2px solid #e5e7eb;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
}

.color-picker:hover {
  opacity: 0.8;
}

.dark .color-picker {
  border-color: #4b5563;
}

.sortable-ghost {
  opacity: 0.4;
}

.color-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 100%;
  z-index: 1000;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  padding: 8px;
  flex-direction: row;
  gap: 6px;
  width: auto;
  min-width: 200px;
}

.dark .color-dropdown {
  background: #374151;
  border-color: #4b5563;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
}

.color-dropdown.show {
  display: flex !important;
}

.completed-task {
  opacity: 0.8;
}

.completed-task .task-text {
  text-decoration: line-through;
}

/* Tooltip styles */
button[title] {
  position: relative;
}

/* Ensure tooltips are visible */
button[title]:hover::after {
  content: attr(title);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  z-index: 1000;
  margin-bottom: 4px;
  pointer-events: none;
}

/* Dark mode hover effects for restore and clear buttons */
.dark #restoreAllCompletedTasks:hover svg,
.dark #deleteAllCompletedTasks:hover svg {
  stroke: white;
}

/* Ensure both headers have exactly the same height */
header {
  min-height: 72px;
  display: flex;
  align-items: center;
}

/* Force exact height alignment for header content */
header > div {
  width: 100%;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}