/* Topic and Species UI Styles */
.species-item {
  padding: 12px 15px;
  border-radius: 8px;
  margin-bottom: 8px;
  background-color: #fff;
  border: 1px solid #e0e0e0;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.species-item:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.species-item.selected {
  background-color: #e3f2fd;
  color: #1976d2;
  border-color: #2196f3;
  box-shadow: 0 2px 8px rgba(33, 150, 243, 0.2);
  font-weight: 600;
  position: relative;
  padding-right: 30px;
}

.species-item.selected::before {
  content: "✓";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: #2196f3;
  font-weight: bold;
  font-size: 14px;
}

.species-item.new-topic {
  border-left: 4px solid #4caf50;
}

.custom-topic {
  border-left: 4px solid #ff9800;
}

.delete-topic-btn:hover {
  background-color: #dc3545;
  color: white;
}

/* Species Selection Modal Styles */
#speciesModal .modal-content {
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  border: none;
}

#speciesFilter {
  border-radius: 20px;
  padding: 12px 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border: 1px solid #e9ecef;
}

#speciesDoneBtn {
  border-radius: 8px;
  font-weight: 600;
  background-color: #212529;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: all 0.2s ease;
}

#speciesDoneBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* Animation for new topics */
.species-item.new-topic {
  animation: pulse-border 2s ease-in-out;
}

@keyframes pulse-border {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0); }
  50% { box-shadow: 0 0 0 8px rgba(0, 123, 255, 0.3); }
}

/* Species menu button in navbar */
#speciesMenuBtn {
  border-radius: 50%;
  width: 38px;
  height: 38px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
